body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #111;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn.primary {
    background: #111;
    color: white;
}

.btn.secondary {
    border: 2px solid #111;
    color: #111;
}

.features {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    background: white;
}

.card h3 {
    margin-top: 0;
}
.footer {
    text-align: center;
    padding: 30px;
    background-color: #111;
    color: white;
    margin-top: 60px;
}

.content {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
}


footer {
    text-align: center;
    padding: 30px;
    background: #111;
    color: white;
    margin-top: 60px;
}


.content {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
}

.content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content h3 {
    margin-top: 40px;
    font-size: 22px;
}

.content p {
    line-height: 1.8;
    color: #444;
}


.content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.problem-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.problem-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.faq-list {
    margin: 12px 0 0;
    padding-left: 18px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FAQ Page Layout
   ========================= */

.faq-section {
    max-width: 900px;          /* 控制內容寬度，不要滿版貼左 */
    margin: 60px auto;         /* 置中 + 上下間距 */
    padding: 0 24px;           /* 小螢幕左右留白 */
}

.faq-section h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.faq-intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #444;
}

/* 每一題變卡片 */
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px 18px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* 問題按鈕變好看（像真的可以點） */
.faq-question {
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    border: none;
    background: transparent;
    padding: 8px 0;
    cursor: pointer;
}

/* 答案排版 */
.faq-answer p {
    margin: 10px 0 0;
    line-height: 1.7;
    color: #333;
}

/*
目的：讓 FAQ「問題 vs 回答」對比更強烈，做出 Help Center 的質感。
重點：
1) 問題（button）變成「有底色 + 左邊粗條 + Q標籤 + 右邊箭頭」
2) 回答（answer）變成白底內容區，字比較淡、行距舒服
3) 先不做 JS 也沒關係：先讓版面好看
*/

/* 整個 FAQ 區塊的寬度與置中 */
.faq-section {
    max-width: 980px;           /* 讓內容不要滿版（更像官網） */
    margin: 0 auto;             /* 置中 */
    padding: 60px 24px;         /* 上下左右留白 */
}

/* FAQ 標題與說明文字 */
.faq-section h1 {
    font-size: 52px;            /* 大標題 */
    margin-bottom: 10px;        /* 下方距離 */
}

.faq-intro {
    font-size: 18px;            /* 稍大 */
    color: #444;                /* 淡黑 */
    margin-bottom: 28px;        /* 下方留白 */
}

/* 每一題卡片 */
.faq-item {
    border: 1px solid #eee;     /* 淡淡外框 */
    border-radius: 16px;        /* 圓角 */
    overflow: hidden;           /* 讓內部底色不要超出圓角 */
    background: #fff;           /* 白底 */
    margin: 18px 0;             /* 上下間距 */
}

/* 問題（button） */
.faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: #f7f7f7;        /* 淡灰底（問題區） */
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;

    border-left: 6px solid #111; /* 左邊黑色粗條（對比強） */
}

/* 左側：Q 標籤 + 文字 */
.faq-q-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-q-text {
    display: inline-block;
}

/* Q/A 標籤 */
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.tag-q {
    background: #111;
    color: #fff;
}

/* 右側箭頭 */
.faq-icon {
    font-size: 18px;
    color: #111;
    opacity: 0.7;
}

/* 回答區塊 */
.faq-answer {
    padding: 16px 22px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* 滑過效果 */
.faq-item:hover {
    border-color: #ddd;         /* 邊框稍深 */
}


/* FAQ accordion: default hide answer */
.faq-answer[hidden] {
    display: none;
}

/* When opened, show answer */
.faq-item.open .faq-answer {
    display: block;
}

/* Arrow rotate (optional, makes it feel interactive) */
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* Smooth feel (optional) */
.faq-icon {
    transition: transform 0.2s ease;
}

/* ===== Global Container (all pages can reuse) ===== */
.container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== About Page ===== */
.page{
    padding: 60px 0;
}

.page h1{
    font-size: 52px;
    margin: 0 0 12px;
}

.page-intro{
    font-size: 18px;
    color: #444;
    margin: 0 0 28px;
    line-height: 1.7;
}

/* Grid cards like a real product site */
.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 18px 0 28px;
}

/* Make cards consistent */
.grid .card{
    border-radius: 16px;
    padding: 22px;
}

/* Support box */
.support-box{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    margin: 8px 0 18px;
}

.support-box h2{
    margin: 0 0 10px;
}

/* Small note */
.note{
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Responsive: on small screens, turn into 1 column */
@media (max-width: 900px){
    .grid{
        grid-template-columns: 1fr;
    }
}


/* ===== About Vertical Layout ===== */

.about-list{
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card{
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 28px 32px;
    background: #fff;
    transition: all 0.2s ease;
}

.about-card h3{
    margin: 0 0 10px;
    font-size: 22px;
}

.about-card p{
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Hover effect */
.about-card:hover{
    border-color: #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}


.faq-search {
    margin: 18px 0 26px;
}

#faqSearch {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
}

#faqSearch:focus {
    border-color: #111;
}


.start-here-toc{
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: #666;
}




html,body{
    height:100%;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

main{
    flex:1;
}


/* ===== Troubleshooting Page (scoped) ===== */
.troubleshooting-page .content{
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 24px;
}

.troubleshooting-page h1{
    font-size: 52px;
    margin: 0 0 12px;
}

.troubleshooting-page .problem-list{
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.troubleshooting-page .problem-card{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.troubleshooting-page .problem-card:hover{
    transform: translateY(-3px);
    border-color: #ddd;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.troubleshooting-page .problem-card h3{
    margin: 0 0 8px;
    font-size: 22px;
}

.troubleshooting-page .problem-card p{
    margin: 0;
    color: #555;
    line-height: 1.7;
}


'''
目的：讓 matter.html 更像產品官網，而不是作業報告。
做法：控制閱讀寬度、縮小大標、強化段落層級、卡片更緊湊、加入小標籤與分隔節奏。
'''

/* ===== Matter page: readable width & spacing ===== */
.matter-page{
    max-width: 920px;   /* 不要太寬，網站會更像官網 */
    margin: 0 auto;
    padding: 60px 24px 30px;
}

/* Hero */
.matter-page h1{
    font-size: 46px;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.matter-page .lead{
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 0 26px;
}

/* Section title */
.matter-page h2{
    font-size: 26px;
    margin: 34px 0 12px;
}

/* 작은分隔線，讓段落有節奏 */
.matter-divider{
    height: 1px;
    background: #eee;
    margin: 26px 0;
}

/* Bullets: 變得更像 help center */
.matter-page ul{
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
    color: #333;
}

.matter-page li{
    margin: 8px 0;
}

/* Cards: 更像產品卡片（更緊湊） */
.matter-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.matter-card{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.matter-card h3{
    margin: 0 0 8px;
    font-size: 18px;
}

.matter-card p{
    margin: 0;
    color: #444;
    line-height: 1.75;
    font-size: 15px;
}

/* Callout: hub 那段變醒目但不笨重 */
.matter-callout{
    margin-top: 14px;
    border: 1px solid #eee;
    border-left: 6px solid #111;
    border-radius: 16px;
    padding: 16px 18px;
    background: #f7f7f7;
}

.matter-callout h3{
    margin: 0 0 6px;
    font-size: 18px;
}

.matter-callout p{
    margin: 0;
    color: #444;
    line-height: 1.75;
    font-size: 15px;
}

/* Small tag label */
.mini-tag{
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px){
    .matter-grid{ grid-template-columns: 1fr; }
    .matter-page h1{ font-size: 40px; }
}



/* =========================
   Matter Page (What is Matter?)
   ========================= */

.matter-page{
    max-width: 920px;
    margin: 80px auto;
    padding: 0 24px;
}

.matter-page h1{
    font-size: 46px;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.matter-page .lead{
    font-size: 17px;
    color: #444;
    line-height: 1.85;
    max-width: 760px;
    margin: 0 0 18px;
}

.matter-page h2{
    font-size: 26px;
    margin: 28px 0 12px;
}

.matter-page .body-text{
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    max-width: 820px;
    margin: 0;
}

/* nice separators */
.matter-divider{
    height: 1px;
    background: #eee;
    margin: 26px 0;
}

/* cleaner bullets */
.matter-list{
    margin: 0;
    padding-left: 18px;
    line-height: 1.95;
    color: #333;
}

.matter-list li{
    margin: 8px 0;
}

/* 2-column cards */
.matter-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.matter-card{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.matter-card h3{
    margin: 0 0 8px;
    font-size: 18px;
}

.matter-card p{
    margin: 0;
    color: #444;
    line-height: 1.75;
    font-size: 15px;
}

/* callout for hub */
.matter-callout{
    margin-top: 14px;
    border: 1px solid #eee;
    border-left: 6px solid #111;
    border-radius: 16px;
    padding: 16px 18px;
    background: #f7f7f7;
}

.matter-callout h3{
    margin: 0 0 6px;
    font-size: 18px;
}

.matter-callout p{
    margin: 0;
    color: #444;
    line-height: 1.75;
    font-size: 15px;
}

@media (max-width: 900px){
    .matter-grid{
        grid-template-columns: 1fr;
    }
    .matter-page h1{
        font-size: 40px;
    }
}


/* =========================
   Matter Page - Version A (Docs)
   ========================= */

.page { padding: 60px 0; }
.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.hero-doc h1 { font-size: 56px; margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.8; color: #333; max-width: 820px; }

.keypoints{
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.kp{
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
}
.kp-title{ font-weight: 800; margin-bottom: 6px; }
.kp-text{ color: #555; line-height: 1.6; font-size: 15px; }

.sep{ border: none; border-top: 1px solid #eee; margin: 26px 0; }

.section h2{ font-size: 34px; margin: 0 0 10px; }
.section h3{ font-size: 20px; margin: 0 0 10px; }
.muted{ color: #555; line-height: 1.8; max-width: 860px; }

.compare{
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.compare-col{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px 18px;
    background: #fff;
}
.compare-col ul{
    margin: 10px 0 0;
    padding-left: 18px;
    color: #444;
    line-height: 1.9;
}

.callout{
    margin-top: 16px;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 18px 18px;
    background: #f7f7f7;
}
.callout-title{ font-weight: 900; margin-bottom: 6px; }
.callout-text{ margin: 0; color: #333; line-height: 1.8; }

.steps{
    margin: 14px 0 0;
    padding-left: 18px;
    line-height: 1.9;
}
.steps li{ margin-bottom: 10px; }
.step-title{ font-weight: 900; margin-right: 6px; }
.step-text{ color: #444; }

@media (max-width: 900px){
    .hero-doc h1{ font-size: 44px; }
    .keypoints{ grid-template-columns: 1fr; }
    .compare{ grid-template-columns: 1fr; }
}


/* =========================
   Matter Page - Version B (Product)
   ========================= */

.page { padding: 60px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.muted { color: #555; line-height: 1.7; }

.hero-card{
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    margin-bottom: 18px;
}
.hero-card h1{ font-size: 56px; margin: 0 0 10px; }
.hero-card p{ margin: 0; font-size: 18px; line-height: 1.8; color: #333; max-width: 820px; }

.hero-badges{
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.badge{
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    background: #f7f7f7;
}

.hero-mini{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    background: #f7f7f7;
}
.mini-title{ font-weight: 900; margin-bottom: 6px; }
.mini-text{ color: #444; line-height: 1.7; }

.grid3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.tile{
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}
.tile h3{ margin: 0 0 8px; font-size: 20px; }
.tile p{ margin: 0; color: #555; line-height: 1.7; }

.section{ margin-top: 26px; }
.section-head h2{ font-size: 34px; margin: 0 0 8px; }
.section-head p{ margin: 0 0 14px; }

.compare2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.panel{
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}
.panel-top{ display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pill{
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e7e7e7;
    background: #f7f7f7;
    font-size: 13px;
}
.panel h3{ margin: 0; font-size: 22px; }
.panel-list{ margin: 10px 0 0; padding-left: 18px; line-height: 1.9; color: #444; }

.highlight{
    margin-top: 14px;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 18px;
    background: #111;
    color: #fff;
}
.highlight-title{ font-weight: 1000; margin-bottom: 6px; font-size: 18px; }
.highlight-text{ margin: 0; line-height: 1.8; opacity: 0.92; }

.flow{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
}
.flow-item{
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    display: flex;
    gap: 12px;
}
.flow-num{
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #111; color: #fff;
    font-weight: 900;
}
.flow-title{ font-weight: 900; margin-bottom: 4px; }
.flow-text{ color: #555; line-height: 1.7; }

@media (max-width: 900px){
    .hero-card{ grid-template-columns: 1fr; }
    .hero-card h1{ font-size: 44px; }
    .grid3{ grid-template-columns: 1fr; }
    .compare2{ grid-template-columns: 1fr; }
    .flow{ grid-template-columns: 1fr; }
}


/* =========================
   Matter Page - Version A (Docs)
   ========================= */

.page { padding: 60px 0; }
.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.hero-doc h1 { font-size: 56px; margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.8; color: #333; max-width: 820px; }

.keypoints{
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.kp{
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
}
.kp-title{ font-weight: 800; margin-bottom: 6px; }
.kp-text{ color: #555; line-height: 1.6; font-size: 15px; }

.sep{ border: none; border-top: 1px solid #eee; margin: 26px 0; }

.section h2{ font-size: 34px; margin: 0 0 10px; }
.section h3{ font-size: 20px; margin: 0 0 10px; }
.muted{ color: #555; line-height: 1.8; max-width: 860px; }

.compare{
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.compare-col{
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px 18px;
    background: #fff;
}
.compare-col ul{
    margin: 10px 0 0;
    padding-left: 18px;
    color: #444;
    line-height: 1.9;
}

.callout{
    margin-top: 16px;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    padding: 18px 18px;
    background: #f7f7f7;
}
.callout-title{ font-weight: 900; margin-bottom: 6px; }
.callout-text{ margin: 0; color: #333; line-height: 1.8; }

.steps{
    margin: 14px 0 0;
    padding-left: 18px;
    line-height: 1.9;
}
.steps li{ margin-bottom: 10px; }
.step-title{ font-weight: 900; margin-right: 6px; }
.step-text{ color: #444; }

@media (max-width: 900px){
    .hero-doc h1{ font-size: 44px; }
    .keypoints{ grid-template-columns: 1fr; }
    .compare{ grid-template-columns: 1fr; }
}


.subtitle {
    font-size: 18px;
    margin-top: 15px;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;   /* 控制 logo 大小 */
}

.logo span {
    font-weight: bold;
    font-size: 18px;
}


.logo img {
    height: 40px;
    filter: invert(1);
}



.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 26px;
}

.logo span {
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 1.5px;
}

.logo span {
    font-weight: bold;
    font-size: 18px;
}

.logo span {
    font-weight: bold;
    font-size: 16px;
}

/* About page list style */
.list {
    padding-left: 20px;
    line-height: 1.8;
    color: #444;
}

/* Brand text looks like nav links */
.brand-text {
    color: white;
    text-decoration: none;
    font-weight: 500;
}


/* ===== About page hero ===== */
.about-hero{
    margin: 60px 0 24px;
}

.about-hero h2{
    margin: 0 0 12px;
    font-size: 46px;
    color: #111;
}

.about-hero .lead{
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    max-width: 900px;
}

/* ===== Card style (shadow + hover lift) ===== */
.card-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.card{
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.card h3{
    margin: 0 0 12px;
    font-size: 22px;
}

.card p, .card li{
    color: #444;
    line-height: 1.85;
}

.card ul{
    margin: 0;
    padding-left: 18px;
}

.muted{
    color: #666;
}

@media (max-width: 900px){
    .about-hero h2{ font-size: 34px; }
    .card-grid{ grid-template-columns: 1fr; }
}


/*
  # 這段 CSS 做的事：
  # 1) 加一個 container 統一寬度
  # 2) 讓區塊標題/描述更整齊
  # 3) 做出「卡片陰影 + hover 微微上移」效果
  # 4) 做出 3 steps 流程條（數字圓圈 + 文字）
*/

/* # 讓整站背景不要太死白，稍微柔和 */
body { /* # 網站整體設定 */
    background: #ffffff; /* # 背景白色 */
    color: #111; /* # 文字主色 */
} /* # body 結束 */

/* # 統一內容最大寬度，讓畫面看起來高級 */
.container { /* # 內容容器：限制最大寬度 */
    max-width: 1100px; /* # 內容最多到 1100px */
    margin: 0 auto; /* # 左右置中 */
    padding: 0 20px; /* # 左右留白 */
} /* # container 結束 */

/* # 通用區塊間距 */
.section { /* # 每個區塊的上下距離 */
    padding: 70px 0; /* # 上下 70px */
} /* # section 結束 */

/* # 淺灰底區塊（用在 Product Solutions 讓版面有節奏） */
.section-alt { /* # 交錯背景 */
    background: #f7f7f7; /* # 淺灰背景 */
} /* # section-alt 結束 */

/* # 區塊標題 */
.section-title { /* # h2 標題 */
    font-size: 34px; /* # 標題字體大小 */
    margin: 0 0 10px 0; /* # 下方留空 */
    letter-spacing: -0.5px; /* # 字距微調，看起來更精緻 */
} /* # section-title 結束 */

/* # 區塊描述 */
.section-desc { /* # 標題下面的小描述 */
    margin: 0 0 28px 0; /* # 下方留空 */
    color: #444; /* # 次要文字顏色 */
    line-height: 1.7; /* # 行距 */
} /* # section-desc 結束 */

/* ✅ HERO：更像官網（乾淨、留白、置中） */
.hero { /* # 首屏區塊 */
    text-align: center; /* # 置中 */
    padding: 110px 0 80px 0; /* # 上下留白 */
} /* # hero 結束 */

.hero-subtitle { /* # hero 副標 */
    max-width: 820px; /* # 不要太寬，會更好讀 */
    margin: 14px auto 0 auto; /* # 置中 + 上下距離 */
    color: #444; /* # 次要文字顏色 */
    line-height: 1.8; /* # 行距 */
} /* # hero-subtitle 結束 */

/* ✅ 卡片排列（3 欄，手機自動變 1 欄） */
.card-grid { /* # 優勢卡片容器 */
    display: grid; /* # 使用 grid 排版 */
    grid-template-columns: repeat(3, 1fr); /* # 三欄 */
    gap: 22px; /* # 卡片間距 */
} /* # card-grid 結束 */

/* ✅ 卡片本體：陰影 + hover 上移（你要的效果） */
.card { /* # 卡片外觀 */
    background: #fff; /* # 卡片白底 */
    border-radius: 16px; /* # 圓角 */
    padding: 22px 22px; /* # 內距 */
    border: 1px solid #eee; /* # 淺邊框 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); /* # 陰影（柔和） */
    transform: translateY(0); /* # 初始位置 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* # 動畫（平滑） */
} /* # card 結束 */

.card:hover { /* # 滑鼠移上卡片時 */
    transform: translateY(-6px); /* # 微微往上移 */
    box-shadow: 0 16px 35px rgba(0,0,0,0.10); /* # 陰影變深一點 */
} /* # card:hover 結束 */

.card h3 { /* # 卡片標題 */
    margin: 0 0 10px 0; /* # 下方留空 */
    font-size: 20px; /* # 標題大小 */
} /* # card h3 結束 */

.card p { /* # 卡片內文 */
    margin: 0 0 14px 0; /* # 下方留空 */
    color: #444; /* # 次要文字色 */
    line-height: 1.7; /* # 行距 */
} /* # card p 結束 */

.card-link { /* # 卡片底部小連結 */
    color: #111; /* # 文字顏色 */
    text-decoration: none; /* # 不要底線 */
    font-weight: 600; /* # 稍微粗體 */
} /* # card-link 結束 */

.card-link:hover { /* # 小連結 hover */
    text-decoration: underline; /* # hover 才出現底線 */
} /* # card-link:hover 結束 */


/* ✅ Product Solutions：用比較簡潔的卡片（也有 hover） */
.solution-grid { /* # 解決方案容器 */
    display: grid; /* # grid 排版 */
    grid-template-columns: repeat(3, 1fr); /* # 三欄 */
    gap: 22px; /* # 間距 */
} /* # solution-grid 結束 */

.solution { /* # 解決方案卡 */
    background: #fff; /* # 白底 */
    border-radius: 16px; /* # 圓角 */
    padding: 22px; /* # 內距 */
    border: 1px solid #eee; /* # 淺邊框 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); /* # 陰影 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* # 動畫 */
} /* # solution 結束 */

.solution:hover { /* # hover */
    transform: translateY(-6px); /* # 上移 */
    box-shadow: 0 16px 35px rgba(0,0,0,0.10); /* # 陰影加深 */
} /* # solution:hover 結束 */

.solution h3 { /* # solution 標題 */
    margin: 0 0 10px 0; /* # 下方留空 */
    font-size: 20px; /* # 字體 */
} /* # solution h3 結束 */

.solution p { /* # solution 內文 */
    margin: 0; /* # 不額外留白 */
    color: #444; /* # 次要色 */
    line-height: 1.7; /* # 行距 */
} /* # solution p 結束 */


/* ✅ 3 steps 流程條：一個一個排列（看起來像教學） */
.steps { /* # steps 容器 */
    display: grid; /* # grid */
    gap: 14px; /* # 每個 step 間距 */
    margin-top: 20px; /* # 與標題距離 */
} /* # steps 結束 */

.step { /* # 每一個 step */
    display: flex; /* # 左右排列：數字 + 文字 */
    gap: 14px; /* # 間距 */
    align-items: flex-start; /* # 對齊上方 */
    background: #fff; /* # 白底 */
    border: 1px solid #eee; /* # 淺邊框 */
    border-radius: 16px; /* # 圓角 */
    padding: 18px 18px; /* # 內距 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); /* # 陰影 */
} /* # step 結束 */

.step-badge { /* # 左邊的數字圓圈 */
    width: 34px; /* # 寬度 */
    height: 34px; /* # 高度 */
    border-radius: 999px; /* # 變成圓形 */
    background: #111; /* # 黑底 */
    color: #fff; /* # 白字 */
    display: flex; /* # 置中 */
    align-items: center; /* # 垂直置中 */
    justify-content: center; /* # 水平置中 */
    font-weight: 700; /* # 粗體 */
} /* # step-badge 結束 */

.step-body h3 { /* # step 標題 */
    margin: 0 0 6px 0; /* # 下方留空 */
    font-size: 18px; /* # 字體 */
} /* # step-body h3 結束 */

.step-body p { /* # step 內文 */
    margin: 0; /* # 不要多餘留白 */
    color: #444; /* # 次要色 */
    line-height: 1.7; /* # 行距 */
} /* # step-body p 結束 */

/* # steps 區塊下面的兩個按鈕 */
.section-cta { /* # CTA 容器 */
    margin-top: 22px; /* # 上方留白 */
    display: flex; /* # 並排 */
    gap: 12px; /* # 間距 */
    justify-content: center; /* # 置中 */
    flex-wrap: wrap; /* # 小螢幕自動換行 */
} /* # section-cta 結束 */


/* ✅ RWD：手機/窄螢幕自動變 1 欄，不會擠 */
@media (max-width: 900px) { /* # 當螢幕小於 900px */
    .card-grid { /* # 三卡區 */
        grid-template-columns: 1fr; /* # 變 1 欄 */
    } /* # card-grid 結束 */

    .solution-grid { /* # solution 區 */
        grid-template-columns: 1fr; /* # 變 1 欄 */
    } /* # solution-grid 結束 */

    .hero { /* # hero */
        padding: 90px 0 60px 0; /* # 縮小留白 */
    } /* # hero 結束 */
} /* # media 結束 */



.hero {
    background: #111;
    color: white;
    padding: 140px 20px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* 底部陰影區隔 */
.hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}


.section-divider {
    height: 80px;
    background: #f5f5f5;
}


.btn.secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: 0.3s ease;
}

.btn.secondary:hover {
    background: white;
    color: black;
}


.btn.primary {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: 0.3s ease;
}

.btn.primary:hover {
    background: white;
    color: black;
}

.hero {
    background: linear-gradient(
            135deg,
            #1e1e1e 0%,
            #2c2c2c 40%,
            #111 100%
    );
}


.hero {
    background: linear-gradient(
            145deg,
            #2b2b2b,
            #1a1a1a,
            #3a3a3a
    );
}

.hero {
    background:
            linear-gradient(
                    145deg,
                    #2b2b2b,
                    #1a1a1a,
                    #3a3a3a
            );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
            120deg,
            transparent 40%,
            rgba(255,255,255,0.05) 50%,
            transparent 60%
    );
    transform: rotate(25deg);
}


.hero {
    background: #1f1f1f;
}


.hero p {
    color: #cfcfcf;
}


.hero {
    background: linear-gradient(
            135deg,
            #222,
            #111
    );
    color: white;
    padding: 160px 20px;
    text-align: center;
}


.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}


.btn:hover {
    background: white;
    color: black;
}


.btn.secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn.secondary:hover {
    background: white;
    color: black;
}


.btn.secondary:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.btn.secondary:hover {
    background: white !important;
    color: black !important;
}






/* 基本按鈕樣式（兩顆一樣） */
.hero-buttons .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* 只有滑鼠放上去的那一顆才改變 */
.hero-buttons .btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}


.btn.secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: 0.3s ease;
}

.btn.secondary:hover {
    background: white;
    color: black;
}


/* 1) hero 本體要能放遮罩 */
.hero{
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2) 遮罩層：一定要 pointer-events: none; 不然會擋按鈕 */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    /* 你現在的金屬灰/光澤背景可以放這裡 */
    background: radial-gradient(circle at 30% 20%, #3a3a3a 0%, #1a1a1a 55%, #0e0e0e 100%);
    opacity: 1;
    pointer-events: none;   /* ✅ 關鍵：不擋滑鼠點擊 */
}

/* 3) 文字與按鈕要浮在遮罩上面 */
.hero-content{
    position: relative;
    z-index: 2;             /* ✅ 保證在遮罩上 */
    text-align: center;
}

/* 4) 按鈕區也保險 */
.hero-buttons{
    position: relative;
    z-index: 3;
}




















.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
            linear-gradient(120deg,#0f0f10 0%,#1a1a1c 25%,#2a2a2d 50%,#1a1a1c 75%,#0f0f10 100%),
            repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,0.02) 0px,
                    rgba(255,255,255,0.02) 1px,
                    transparent 1px,
                    transparent 3px
            );
    pointer-events:none;
}
























.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
            linear-gradient(135deg,#2a2a2f 0%,#1a1a1e 40%,#303035 100%);
    box-shadow:
            inset 0 0 200px rgba(255,255,255,0.05),
            inset 0 -100px 200px rgba(0,0,0,0.6);
    pointer-events:none;
}























.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
            linear-gradient(to bottom,#1b1b1d 0%,#111113 100%);
    box-shadow:
            inset 0 60px 120px rgba(255,255,255,0.05),
            inset 0 -120px 200px rgba(0,0,0,0.7);
    pointer-events:none;
}









.hero h1{
    font-weight:700;
    letter-spacing:1px;
    text-shadow:0 2px 8px rgba(0,0,0,0.5);
}




.hero{
    position: relative;
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18vh;
}





.hero{
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18vh;   /* 用視窗比例，比較高級 */
}









.hero{
    position: relative;
    min-height: 80vh;          /* 可以稍微高一點 */
    display: flex;
    align-items: flex-start;   /* 改這行 */
    justify-content: center;
    padding-top: 120px;        /* 控制往上多少 */
}



.scroll-hint{
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 9999;
}

.scroll-text{
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.scroll-arrow{
    font-size: 32px;
    color: white;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}














.scroll-down{
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    animation: bounce 1.6s infinite;
    transition: 0.3s;
}

.scroll-down:hover{
    opacity: 1;
}

@keyframes bounce{
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
    100% { transform: translate(-50%, 0); }
}






.hero{
    position: relative;
    height: 100vh;     /* ✅ 一個完整畫面 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
















.hero{
    position: relative;

    /* ✅ 這行就是：永遠剛好一個螢幕高 */
    height: calc(100svh - var(--header-h, 72px));

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden; /* ✅ 防止背景或裝飾超出去造成捲動 */
}


.hero-content{
    position: relative;
    z-index: 2;
    text-align: center;

    max-width: 900px;
    padding: 0 24px; /* ✅ 左右留白就好，不要上下超大 padding */
}



:root{ --header-h: 72px; }      /* 桌機 header 高 */
@media (max-width: 768px){
    :root{ --header-h: 60px; }    /* 手機 header 高 */
}























/* ====== (A) 全域防止水平捲軸 & 讓寬度計算正常 ====== */
*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* ✅ 關鍵：任何不小心超出寬度的東西都不准造成水平捲軸 */
}












.scroll-down{
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);

    font-size: 50px;
    color: #ffffff;

    z-index: 9999;

    animation: bob 1.2s ease-in-out infinite;
    pointer-events: none;
}







.scroll-down{
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);

    font-size: 45px;
    color: #ffffff;

    z-index: 9999;
    pointer-events: none;

    animation: bounce 1.5s ease-in-out infinite;
}

/* 上下浮動動畫 */
@keyframes bounce {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}














/* 讓左邊圖片區塊固定高度，圖片自動縮放塞進去（不裁切） */
.product-media{
    height: 360px;                /* 你想要的格子高度：320~420都可以 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;          /* 有質感的底色 */
    border-radius: 18px;
    overflow: hidden;
}

/* 圖片跟著格子縮放、不變形 */
.product-media img{
    width: 100%;
    height: 100%;
    object-fit: contain;          /* ✅ 不裁切：整張圖都看得到 */
    object-position: center;
}




.scroll-hint{
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 9999;
}

.scroll-text{
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.scroll-arrow{
    font-size: 50px;
    color: white;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}





.troubleshooting{
    max-width:1100px;
    margin:80px auto;
    padding:0 24px;
}

.page-title{
    font-size:56px;
    font-weight:700;
    margin-bottom:16px;
}

.page-lead{
    color:#666;
    margin-bottom:60px;
}

.ts-item{
    padding:40px 0;
    border-bottom:1px solid #eee;
}

.ts-item h2{
    font-size:26px;
    margin-bottom:12px;
}

.ts-desc{
    color:#666;
    margin-bottom:20px;
}

.ts-steps{
    padding-left:20px;
    line-height:1.8;
}

.ts-steps li{
    margin-bottom:8px;
}







/* ===== Troubleshooting (Support style) ===== */

.support-page{
    max-width: 1120px;
    margin: 80px auto;
    padding: 0 24px 80px;
}

.support-hero{
    text-align: center;
    margin-bottom: 48px;
}

.support-hero h1{
    font-size: clamp(42px, 5vw, 72px);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.support-hero p{
    color:#6b7280;
    font-size: 18px;
    margin: 0;
}

.support-list{
    display: grid;
    gap: 18px;
}

.support-card{
    display: grid;
    grid-template-columns: 1.05fr 1.45fr;
    gap: 22px;
    padding: 22px;
    border: 1px solid #eef0f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.support-left h2{
    margin: 8px 0 8px;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.support-desc{
    margin: 0 0 14px;
    color:#6b7280;
    line-height: 1.6;
}

.support-badge{
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b63ff;
    background: rgba(11,99,255,.10);
    border: 1px solid rgba(11,99,255,.15);
}

.support-meta{
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.meta-pill{
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #eef0f3;
    color: #374151;
    background: #f9fafb;
}

.support-right{
    border-left: 1px dashed #eef0f3;
    padding-left: 22px;
}

.support-right h3{
    margin: 4px 0 12px;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color:#6b7280;
}

.support-right ol{
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
}

.support-right li{
    margin: 6px 0;
}

.support-note{
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    color:#374151;
}

/* responsive */
@media (max-width: 860px){
    .support-card{
        grid-template-columns: 1fr;
    }
    .support-right{
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed #eef0f3;
        padding-top: 14px;
    }
}



.page-header {
    max-width: 1100px;
    margin: 80px auto 60px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header .subtitle {
    font-size: 18px;
    color: #666;
}





/* ✅ 每張卡片寬度固定（置中），高度自然長（隨字數/答案長度變） */
.faq-item{
    width: min(900px, 100%);   /* 固定卡片寬度：最大 900px，手機就 100% */
    margin: 18px auto;         /* 置中 */
    box-sizing: border-box;
}

/* ✅ 問題按鈕永遠滿寬（不會因字少就變窄） */
.faq-question{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;

    /* 重要：不要寫死 height，讓高度隨文字換行自然變高 */
    height: auto;
    padding: 18px 18px;
}

/* ✅ 題目文字：允許換行（行數多就自然變高） */
.faq-q-text{
    white-space: normal;       /* 允許換行 */
    overflow-wrap: anywhere;   /* 很長的字也能斷行，避免爆版 */
}

/* ✅ icon 靠右 */
.faq-icon{
    margin-left: auto;
}






/* ===== Fix FAQ question bar width + wrap to height ===== */

/* 白色卡片固定滿寬 */
.faq-item{
    width: 100%;
    box-sizing: border-box;
}

/* 灰色問題條：永遠滿寬，不會因字數變窄 */
.faq-question{
    width: 100% !important;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
}

/* 左邊「Q + 文字」這塊要可以縮放，才不會把寬度搞怪 */
.faq-q-left{
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;     /* ✅ 讓它吃滿剩下空間 */
    min-width: 0;       /* ✅ 超重要：不加會導致內容把容器撐爆/行為怪 */
}

/* 文字：允許換行 => 字多就長高（高度自然變大） */
.faq-q-text{
    white-space: normal;        /* ✅ 允許換行 */
    overflow-wrap: anywhere;    /* ✅ 超長字也能斷行 */
}

/* icon 永遠靠右、不要被擠走 */
.faq-icon{
    margin-left: auto;
    flex: 0 0 auto;
}








/* 問題（button） */
.faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: #f7f7f7;        /* 淡灰底（問題區） */
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;

    border-left: 6px solid #111; /* 左邊黑色粗條（對比強） */
}



/* 搜尋關鍵字高亮 */
mark {
    background-color: #ffe96b;
    padding: 0 3px;
    border-radius: 3px;
}



/* ===== Header RWD Fix ===== */

/* 1) header 變成彈性排版，可換行 */
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;           /* ✅ 關鍵：小螢幕可以換行 */
    gap: 12px;
    padding: 14px 24px;
    box-sizing: border-box;
}

/* 2) logo 區不要被擠爆 */
header .logo{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* 3) nav 區可縮放 */
header nav{
    flex: 1 1 auto;            /* ✅ 可縮可長 */
    min-width: 260px;          /* ✅ 太窄就自動換行到下一排 */
}

/* 4) menu 允許換行（避免硬擠在一行爆版） */
header nav ul{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;           /* ✅ 關鍵：menu 可以換行 */
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===== Breakpoints ===== */

/* 平板：nav 換到下一行並置中 */
@media (max-width: 900px){
    header{
        padding: 14px 16px;
    }
    header nav{
        flex-basis: 100%;        /* ✅ nav 直接佔滿一行 */
        min-width: 0;
    }
    header nav ul{
        justify-content: center; /* ✅ 置中比較好看 */
        gap: 14px;
    }
}

/* 手機：字變小、間距縮小 */
@media (max-width: 520px){
    header nav ul{
        gap: 10px;
    }
    header nav a{
        font-size: 14px;
    }
    header .logo span{
        font-size: 14px;
    }
}









mark{
    background: #ffe96b;
    padding: 0 3px;
    border-radius: 3px;
}



/* =========================
   Gallery Page
   功能：建立符合老師要求的 float 多欄圖片展示頁
   ========================= */

.gallery-page {
    padding: 60px 0;
}

.gallery-page .page-head {
    padding: 18px 0 10px;
}

.gallery-page h1 {
    font-size: 48px;
    margin: 0 0 10px;
}

.gallery-page .subtitle {
    margin: 0;
    color: #444;
    font-size: 18px;
    max-width: 70ch;
}

.gallery-page .subtitle + .subtitle {
    margin-top: 6px;
}

.gallery-float {
    overflow: auto;
    margin-top: 30px;
}

.gallery-item {
    float: left;
    width: 100%;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
}

.gallery-item figcaption {
    margin-top: 12px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

@media (min-width: 768px) {
    .gallery-item {
        width: 48%;
        margin-right: 2%;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: 31.333%;
        margin-right: 2%;
    }
}


/* =========================
   Product Gallery Page
   符合老師要求：float + figure + figcaption + responsive
   ========================= */

.gallery-page {
    padding: 48px 0;
    background: #ffffff;
}

.gallery-page .container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-page .page-head {
    margin-bottom: 28px;
    text-align: center;
}

.gallery-page h1 {
    margin: 0 0 10px;
    font-size: 2.4rem;
    line-height: 1.2;
}

.gallery-page .subtitle {
    margin: 4px auto;
    max-width: 720px;
    color: #555;
    font-size: 1rem;
}

.gallery-float {
    overflow: auto;
    margin-top: 28px;
}

/* Mobile first: one column */
.gallery-card {
    float: left;
    width: 100%;
    min-height: 560px;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
    box-sizing: border-box;
}

.gallery-media {
    margin: 0 0 16px;
    padding: 0;
    text-align: center;
}

.gallery-media img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-media figcaption {
    margin-top: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #333333;
    text-align: center;
}

.gallery-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1b57ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.gallery-info h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.gallery-info .lead {
    margin: 0 0 10px;
    color: #333;
    font-size: 0.95rem;
}

.gallery-info .bullets {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #222;
    font-size: 0.92rem;
}

.gallery-info .bullets li {
    margin: 5px 0;
}

.gallery-info .desc {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
}

/* Tablet: two columns */
@media (min-width: 768px) {
    .gallery-card {
        width: 48%;
        margin-right: 2%;
    }
}

/* Desktop: three columns */
@media (min-width: 1024px) {
    .gallery-card {
        width: 31.333%;
        margin-right: 2%;
    }
}


/* =========================
   Home Page: Why RUI TENG SVG Logo
   ========================= */

.section-heading-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.section-heading-text {
    flex: 1;
}

.section-logo-figure {
    margin: 0;
    text-align: center;
}

.section-logo-svg {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
}

.section-logo-figure figcaption {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666666;
}

/* Mobile layout */
@media (max-width: 768px) {
    .section-heading-with-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-logo-figure {
        text-align: left;
    }

    .section-logo-svg {
        width: 150px;
    }
}

.section-logo-figure figcaption {
    display: none;
}


.section-heading-with-logo .section-logo-figure figcaption {
    display: none !important;
}




/* =========================
   Media Page
   ========================= */

.media-page {
    padding: 60px 0;
}

.media-page .page-head {
    margin-bottom: 32px;
}

.media-page h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.media-demo {
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
}

.responsive-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 14px;
}

.media-description {
    max-width: 900px;
    margin: 24px auto 0;
}

.media-description h3 {
    margin-bottom: 8px;
}

.media-description p {
    color: #444444;
    line-height: 1.7;
}

.media-description a {
    font-weight: 700;
    color: #111111;
    text-decoration: underline;
}

.media-description a:hover {
    opacity: 0.7;
}


.media-disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 4px solid #111111;
    background: #f5f5f5;
    font-size: 0.95rem;
    color: #444444;
}


.responsive-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 14px;
}


/* Fix media page title and subtitle alignment */
.media-page .page-head {
    text-align: left;
    margin-bottom: 32px;
}

.media-page .page-head h1 {
    margin: 0 0 12px;
    font-size: 3rem;
    line-height: 1.15;
}

.media-page .page-head .subtitle {
    margin: 0;
    max-width: 720px;
    color: #555555;
    font-size: 1.2rem;
    line-height: 1.4;
}




/* =========================
   Data Page
   ========================= */

.data-page {
    padding: 60px 0;
}

.data-page .page-head {
    text-align: left;
    margin-bottom: 32px;
}

.data-page .page-head h1 {
    margin: 0 0 12px;
    font-size: 3rem;
    line-height: 1.15;
}

.data-page .page-head .subtitle {
    margin: 0;
    max-width: 760px;
    color: #555555;
    font-size: 1.2rem;
    line-height: 1.5;
}

.data-intro {
    overflow: auto;
    margin-bottom: 36px;
}

.data-article,
.data-aside {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
}

.data-article {
    margin-bottom: 20px;
}

.data-aside {
    background: #f7f7f7;
}

.data-article h2,
.data-aside h3,
.table-section h2 {
    margin-top: 0;
}

.data-article p,
.data-aside p {
    color: #444444;
    line-height: 1.7;
}

.table-section {
    margin-top: 20px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e6e6e6;
}

.spec-table caption {
    caption-side: top;
    padding: 14px;
    font-weight: 700;
    text-align: left;
    color: #111111;
}

.spec-table th,
.spec-table td {
    padding: 16px;
    border: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    background: #111111;
    color: #ffffff;
    font-weight: 700;
}

.spec-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.spec-table tfoot td {
    background: #eeeeee;
    font-size: 0.95rem;
    color: #444444;
}

/* Tablet and desktop layout */
@media (min-width: 768px) {
    .data-article {
        float: left;
        width: 62%;
        margin-right: 4%;
        margin-bottom: 0;
    }

    .data-aside {
        float: left;
        width: 34%;
    }
}

/* Mobile responsive table */
@media (max-width: 767px) {
    .spec-table,
    .spec-table thead,
    .spec-table tbody,
    .spec-table tfoot,
    .spec-table tr,
    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
    }

    .spec-table thead {
        display: none;
    }

    .spec-table tr {
        margin-bottom: 16px;
        border: 1px solid #e6e6e6;
        border-radius: 14px;
        overflow: hidden;
        background: #ffffff;
    }

    .spec-table td {
        border: none;
        border-bottom: 1px solid #eeeeee;
        padding: 12px 16px;
    }

    .spec-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #111111;
        margin-bottom: 4px;
    }

    .spec-table tfoot tr {
        border-radius: 14px;
    }

    .spec-table tfoot td::before {
        content: "Note";
    }
}



/* Gallery page title and subtitle alignment */
.gallery-page .page-head {
    text-align: left;
    margin-bottom: 32px;
}

.gallery-page .page-head h1 {
    margin: 0 0 12px;
    font-size: 3rem;
    line-height: 1.15;
    text-align: left;
}

.gallery-page .page-head .subtitle {
    margin: 0;
    max-width: 760px;
    color: #555555;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: left;
}



/* =========================
   Contact Page
   ========================= */

.contact-page {
    padding: 60px 0;
}

.contact-page .page-head {
    text-align: left;
    margin-bottom: 32px;
}

.contact-page .page-head h1 {
    margin: 0 0 12px;
    font-size: 3rem;
    line-height: 1.15;
}

.contact-page .page-head .subtitle {
    margin: 0;
    max-width: 760px;
    color: #555555;
    font-size: 1.2rem;
    line-height: 1.5;
}

.contact-layout {
    overflow: auto;
    margin-bottom: 44px;
}

.contact-info,
.contact-form-section,
.social-section {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-info h2,
.contact-form-section h2,
.social-section h2 {
    margin-top: 0;
}

.contact-info p,
.contact-note p,
.social-section p {
    color: #444444;
    line-height: 1.7;
}

.contact-info a {
    font-weight: 700;
    color: #111111;
    text-decoration: underline;
}

.contact-note {
    margin-top: 24px;
    padding: 18px;
    border-left: 4px solid #111111;
    background: #f7f7f7;
    border-radius: 12px;
}

.contact-form {
    margin-top: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.form-group legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111111;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    font: inherit;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

fieldset.form-group {
    padding: 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.choice-row input {
    width: auto;
}

.choice-row label {
    margin: 0;
    font-weight: 500;
    color: #333333;
}

.form-agreement {
    align-items: flex-start;
    margin: 20px 0;
}

.form-agreement label {
    line-height: 1.5;
}

.social-section {
    margin-top: 24px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    color: #111111;
    text-decoration: none;
    font-weight: 700;
    background: #ffffff;
}

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

.social-icons a:visited {
    color: #111111;
}

.social-icons img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Tablet and desktop layout */
@media (min-width: 768px) {
    .contact-info {
        float: left;
        width: 38%;
        margin-right: 4%;
        margin-bottom: 0;
    }

    .contact-form-section {
        float: left;
        width: 58%;
    }
}

@media (min-width: 1024px) {
    .contact-page .container {
        max-width: 1180px;
    }
}

/* Social media SVG icons */
.social-icons img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.social-icons img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.section-logo-figure figcaption {
    display: none;
}












/* ===== Fix Home Hero Center Alignment ===== */

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-content h1 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: normal;
}

.hero-content p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(3.5rem, 5vw, 5.5rem);
        line-height: 1.1;
    }
}










/* =========================================================
   FINAL HOME HERO FIX
   Purpose:
   Restore the original centered homepage hero layout.
   This overrides earlier duplicated .hero rules.
   ========================================================= */

/* Home hero full-screen dark section */
.hero {
    position: relative;
    height: calc(100svh - 72px);
    min-height: 680px;
    padding: 0 24px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
            linear-gradient(
                    135deg,
                    rgba(34, 34, 36, 0.96) 0%,
                    rgba(18, 18, 20, 0.98) 45%,
                    rgba(10, 10, 11, 1) 100%
            );
    color: #ffffff;
}

/* Dark glossy overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
            linear-gradient(
                    120deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.05) 42%,
                    transparent 62%
            ),
            linear-gradient(
                    to bottom,
                    rgba(255, 255, 255, 0.03),
                    rgba(0, 0, 0, 0.45)
            );
}

/* Bottom shadow */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
            to bottom,
            transparent,
            rgba(0, 0, 0, 0.55)
    );
}

/* Hide the extra hero image so the original centered hero returns */
.hero-image {
    display: none !important;
}

/* Center text block */
.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    text-align: center;
}

/* Main title */
.hero-content h1 {
    margin: 0 0 28px;
    padding: 0;

    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0.5px;

    color: #ffffff;
    text-align: center;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Subtitle */
.hero-content p {
    max-width: 850px;
    margin: 0 auto 42px;

    font-size: clamp(1.2rem, 1.8vw, 1.85rem);
    line-height: 1.25;
    color: #d6d6d6;
    text-align: center;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;

    position: relative;
    z-index: 3;
}

/* Button style */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 230px;
    padding: 18px 32px;

    border: 3px solid #ffffff;
    border-radius: 16px;
    background: transparent;
    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;

    transition: all 0.25s ease;
}

/* Button hover */
.hero-buttons .btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Explore hint at the bottom */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    z-index: 4;

    text-align: center;
    pointer-events: none;
}

.scroll-text {
    margin-bottom: 10px;

    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.scroll-arrow {
    font-size: 3rem;
    line-height: 1;
    color: #ffffff;

    animation: heroBounce 1.5s ease-in-out infinite;
}

@keyframes heroBounce {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.55;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive hero */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 760px;
        padding: 120px 20px 130px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 10vw, 4.2rem);
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}







/* =========================================================
   HOME HERO - restore original lighter centered style
   Put this at the VERY END of css/styles.css
   ========================================================= */

/* 首頁 hero 區塊 */
.hero {
    position: relative;
    height: calc(100svh - 72px);
    min-height: 660px;
    padding: 0 24px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: linear-gradient(
            135deg,
            #1f1f22 0%,
            #121214 45%,
            #0d0d0f 100%
    );
    color: #ffffff;
}

/* 背景光澤層 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
            linear-gradient(
                    120deg,
                    transparent 0%,
                    rgba(255,255,255,0.04) 45%,
                    transparent 60%
            ),
            linear-gradient(
                    to bottom,
                    rgba(255,255,255,0.02),
                    rgba(0,0,0,0.35)
            );
}

/* 底部陰影 */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
}

/* 如果你首頁不要產品圖，就隱藏 */
.hero-image {
    display: none !important;
}

/* 文字區 */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 主標題：改回比較像你原本那種，不要太粗 */
.hero-content h1 {
    margin: 0 0 22px;
    font-size: clamp(3.1rem, 4.8vw, 4.7rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* 副標題：不要太大 */
.hero-content p {
    max-width: 860px;
    margin: 0 auto 34px;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    line-height: 1.35;
    font-weight: 400;
    color: #d6d6d6;
    text-align: center;
}

/* 按鈕區 */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* 按鈕：改回比較接近你原本第二張 */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 26px;
    border: 2px solid #ffffff;
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-buttons .btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

/* Explore 提示 */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    pointer-events: none;
}

.scroll-text {
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.scroll-arrow {
    font-size: 2.7rem;
    line-height: 1;
    color: #ffffff;
    animation: heroBounceSoft 1.5s ease-in-out infinite;
}

@keyframes heroBounceSoft {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 平板以下 */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 720px;
        padding: 110px 20px 120px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 9vw, 4.1rem);
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-buttons .btn {
        min-width: 180px;
        padding: 13px 22px;
    }
}

/* 手機 */
@media (max-width: 600px) {
    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}








/* =========================================
   Home hero - smaller version like image 2
   ========================================= */

.hero {
    position: relative;
    height: calc(100svh - 72px);
    min-height: 650px;
    padding: 0 20px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: linear-gradient(
            135deg,
            #1f1f22 0%,
            #121214 45%,
            #0d0d0f 100%
    );
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            linear-gradient(
                    120deg,
                    transparent 0%,
                    rgba(255,255,255,0.04) 45%,
                    transparent 60%
            ),
            linear-gradient(
                    to bottom,
                    rgba(255,255,255,0.02),
                    rgba(0,0,0,0.35)
            );
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
}

/* 首頁不要出現產品圖 */
.hero-image {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 主標題縮小 */
.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 4.2vw, 4.2rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* 副標題縮小 */
.hero-content p {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.4;
    font-weight: 400;
    color: #d6d6d6;
    text-align: center;
}

/* 按鈕縮小 */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    padding: 12px 24px;
    border: 2px solid #ffffff;
    border-radius: 14px;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-buttons .btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

/* Explore */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    pointer-events: none;
}

.scroll-text {
    margin-bottom: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.scroll-arrow {
    font-size: 2.6rem;
    line-height: 1;
    color: #ffffff;
    animation: heroBounceSoft 1.5s ease-in-out infinite;
}

@keyframes heroBounceSoft {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 680px;
        padding: 100px 20px 110px;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 8vw, 3.6rem);
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-buttons .btn {
        min-width: 165px;
        padding: 11px 20px;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
    }
}


/* =========================================
   Move whole home hero content upward
   包含標題、副標題、按鈕、Explore 箭頭一起往上
   ========================================= */

.hero {
    align-items: flex-start !important;
    padding-top: 200px !important;
}

/* 文字與按鈕整組往上 */
.hero-content {
    transform: translateY(-50px);
}

/* Explore 箭頭也一起往上 */
.scroll-hint {
    bottom: 150px !important;
}


/* =========================
   Contact Page Submit Button Fix
   ========================= */

/* 讓 Contact 表單的送出按鈕清楚出現 */
.contact-form button[type="submit"] {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    border: 2px solid #111;
    border-radius: 12px;
    background-color: #111;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

/* 滑鼠移上去時的效果 */
.contact-form button[type="submit"]:hover {
    background-color: #ffffff;
    color: #111;
}

/* 確保按鈕不會被其他 btn 樣式蓋掉 */
.contact-form .btn.primary {
    background-color: #111 !important;
    color: #ffffff !important;
    border: 2px solid #111 !important;
}

/* hover 時反白 */
.contact-form .btn.primary:hover {
    background-color: #ffffff !important;
    color: #111 !important;
}



.gallery-float {
    overflow: auto;
    margin-top: 28px;
}

.gallery-card {
    float: left;
    width: 100%;
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .gallery-card {
        width: 48%;
        margin-right: 2%;
    }
}

@media (min-width: 1024px) {
    .gallery-card {
        width: 31.333%;
        margin-right: 2%;
    }
}


/* =========================
   Fix Product Gallery Float Layout
   問題：float 會因為卡片高度不同，導致第 4、5 張位置亂掉
   解法：每一排固定重新開始，避免卡片卡到上一排空位
   ========================= */

/* 讓 float 外層正確包住所有卡片 */
.gallery-float::after {
    content: "";
    display: block;
    clear: both;
}

/* 每張產品卡片 */
.gallery-card {
    float: left;
    width: 31.333%;
    margin-right: 3%;
    margin-bottom: 36px;

    box-sizing: border-box;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;

    padding: 28px;
    min-height: 760px;   /* 讓同一排卡片高度比較一致 */
}

/* 每一排的第 3 張不要有右邊距 */
.gallery-card:nth-of-type(3n) {
    margin-right: 0;
}

/* 每一排的第 1 張強制換到新的一排 */
.gallery-card:nth-of-type(3n + 1) {
    clear: left;
}

/* 圖片區塊固定高度，避免圖片大小不同造成版面亂 */
.gallery-media {
    height: 260px;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 圖片完整顯示，不裁切、不變形 */
.gallery-media img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 圖片標題 */
.gallery-media figcaption {
    margin-top: 18px;
    font-weight: 700;
    font-size: 1rem;
    color: #333333;
    text-align: center;
}

/* 平板：兩欄 */
@media (max-width: 1023px) {
    .gallery-card {
        width: 48%;
        margin-right: 4%;
        min-height: auto;
    }

    .gallery-card:nth-of-type(3n) {
        margin-right: 4%;
    }

    .gallery-card:nth-of-type(3n + 1) {
        clear: none;
    }

    .gallery-card:nth-of-type(2n) {
        margin-right: 0;
    }

    .gallery-card:nth-of-type(2n + 1) {
        clear: left;
    }
}

/* 手機：一欄 */
@media (max-width: 767px) {
    .gallery-card {
        float: none;
        width: 100%;
        margin-right: 0;
        min-height: auto;
    }

    .gallery-card:nth-of-type(n) {
        clear: none;
        margin-right: 0;
    }

    .gallery-media {
        height: auto;
    }
}

.about-hero h1 {
    font-size: 56px;
}


/* =========================
   About Page
   ========================= */

/* About page main spacing */
.about-page {
    padding: 70px 0 90px;
    background: #ffffff;
}

/* About page container */
.about-page .container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top intro area */
.about-hero {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

/* Page title */
.about-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #111111;
}

/* Intro paragraph */
.about-hero .lead {
    font-size: 20px;
    line-height: 1.8;
    color: #555555;
    max-width: 850px;
    margin: 0;
}

/* Logo figure */
.about-logo-figure {
    margin: 0;
    padding: 28px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

/* Logo image */
.about-logo-figure img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Figcaption */
.about-logo-figure figcaption {
    margin-top: 14px;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* About cards grid */
.about-page .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* About card */
.about-page .card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Card hover effect */
.about-page .card:hover {
    transform: translateY(-5px);
    border-color: #d6d6d6;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

/* Card headings */
.about-page .card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
    color: #111111;
}

/* Card paragraphs */
.about-page .card p {
    margin: 0 0 14px;
    color: #444444;
    line-height: 1.75;
    font-size: 16px;
}

/* Card lists */
.about-page .card ul {
    margin: 0;
    padding-left: 20px;
    color: #444444;
    line-height: 1.8;
}

/* List items */
.about-page .card li {
    margin-bottom: 6px;
}

/* Muted text */
.about-page .muted {
    color: #666666;
    font-size: 15px;
}

/* Responsive: tablet */
@media (max-width: 1000px) {
    .about-hero {
        grid-template-columns: 1fr;
    }

    .about-page .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: mobile */
@media (max-width: 700px) {
    .about-page {
        padding: 50px 0 70px;
    }

    .about-hero h1 {
        font-size: 40px;
    }

    .about-hero .lead {
        font-size: 17px;
    }

    .about-page .card-grid {
        grid-template-columns: 1fr;
    }

    .about-page .card {
        padding: 22px;
    }
}

/* ===== About page small adjustments ===== */

/* 1. 標題小一點點 */
.about-hero h1 {
    font-size: 50px;   /* 原本如果是 56px，改成 50px 會比較剛好 */
}

/* 2. logo 外面不要框框、不要背景、不要陰影 */
.about-logo-figure {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* 3. logo 下方那行字不要顯示 */
.about-logo-figure figcaption {
    display: none;
}

/* 4. logo 圖本身可再微調大小 */
.about-logo-figure img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

