/* 基礎設定 */
:root {
    --primary-color: #B56A3A;
    /* 棕色系，呼應水獺顏色 */
    --secondary-color: #FAF0DA;
    /* 米色背景 [cite: 102] */
    --accent-color: #FFE2B3;
    --brand-blue: #1f3d5a;
    --text-dark: #123338;
    --navbar-height: 72px;
    --anchor-offset: 16px;
}

html {
    scroll-padding-top: calc(var(--navbar-height) + var(--anchor-offset));
    scroll-behavior: smooth;
}

/* 避免錨點跳轉被 sticky navbar 蓋住 */
[id] {
    scroll-margin-top: calc(var(--navbar-height) + var(--anchor-offset));
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 導覽列 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    height: 72px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: nowrap;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-blue);
}

.logo-icon {
    width: 64px;
    height: 64px;
    display: block;
}

.logo-text {
    line-height: 1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

.nav-toggle-bar+.nav-toggle-bar {
    margin-top: 5px;
}

/* Hero 區塊 */
.hero {
    background: var(--secondary-color);
    padding: 32px 10% 54px;
}

.hero--banner {
    display: flex;
    justify-content: center;
}

.hero-banner-card {
    width: 100%;
    max-width: 1240px;
    background: #FAF0DA;
    padding: 92px 70px;
}

.hero-banner-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
}

.hero-banner-icon {
    width: 200px;
    height: auto;
    display: block;
}

.hero-banner-text {
    display: inline-block;
}

.hero-banner-title {
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--brand-blue);
    line-height: 1;
}

.hero-banner-subtitle {
    margin-top: 14px;
    font-size: 1.9rem;
    font-weight: 800;
    color: rgba(18, 51, 56, 0.55);
    width: 100%;
    white-space: nowrap;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-ideograph;
}

/* 特色區塊 */
.section-title {
    text-align: center;
    margin: 50px 0;
    font-size: 3.2rem;
    font-weight: 800;
}

.product-showcase {
    background: var(--secondary-color);
    /* 大區塊間距：整體更緊密 */
    padding: 56px 10% 18px;
}

.product-header {
    text-align: center;
}

.product-title {
    margin: 0 0 32px;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.product-stage {
    margin: 10px auto 0;
    width: 100%;
    max-width: 1240px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(560px, 1.15fr) minmax(420px, 0.85fr);
    gap: 34px;
    /* 讓右側水獺可以切齊左側白卡底部 */
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    /* 讓白卡更「橫向長方形」：更寬、更矮 */
    padding: 36px 46px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.product-card h3 {
    margin: 0 0 20px;
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: rgba(18, 51, 56, 0.9);
}

.product-intro {
    margin: 0 0 26px;
    padding: 26px 28px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.65;
    color: rgba(18, 51, 56, 0.7);
    background: #f8f8f8;
    border: 2px solid rgba(18, 51, 56, 0.25);
    border-radius: 20px;
}

.product-group+.product-group {
    margin-top: 28px;
}

.product-group-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(18, 51, 56, 0.85);
    margin-bottom: 12px;
}

.chip-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 10px;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 700;
    background: #fff;
    border: 2px solid rgba(18, 51, 56, 0.18);
    color: rgba(18, 51, 56, 0.85);
    white-space: nowrap;
}

.chip--active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.product-mascot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: auto;
    align-self: start;
}

.product-mascot img {
    height: auto;
    width: 100%;
    max-width: 560px;
    display: block;
    object-fit: contain;
    margin-top: 0;
    transform: none;
    align-self: flex-start;
}

/* 產品展示（參考圖樣式） */
.product-demo {
    background: var(--secondary-color);
    /* 大區塊間距：整體更緊密 */
    padding: 52px 10%;
}

.product-demo-header {
    text-align: center;
}

.product-demo-title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.product-demo-grid {
    margin: 28px auto 0;
    max-width: 1240px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* 產品展示：讓三張截圖尺寸一致、外框不要太深 */
.product-demo .phone {
    border-color: rgba(18, 51, 56, 0.18);
}

.product-demo .phone__screen {
    /* 固定展示區比例，讓三張圖一樣大 */
    aspect-ratio: 3 / 4;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
    background: transparent;
}

.product-demo .phone__screen--cream {
    background: transparent;
}

.product-demo .phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    background: transparent;
    border-radius: 18px;
}

.phone {
    background: #fff;
    border: 2px solid rgba(18, 51, 56, 0.4);
    border-radius: 44px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.phone__screen {
    padding: 26px 26px 18px;
    border-bottom: 2px solid rgba(18, 51, 56, 0.18);
}

.phone--no-divider .phone__screen {
    border-bottom: 0;
}

.phone__screen--cream {
    background: rgba(255, 226, 179, 0.35);
}

.phone__screen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 22px;
    background: rgba(255, 226, 179, 0.35);
    padding: 18px;
}

.phone__body {
    padding: 22px 26px 28px;
    text-align: left;
}

.phone__body--center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.phone__body h3 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-dark);
}

.phone__body p {
    margin: 0 0 22px;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(18, 51, 56, 0.6);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 10%;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    line-height: 1.15;
    color: var(--text-dark);
}

.feature-card p {
    margin: 12px 0 18px;
    font-size: 1.2rem;
    color: rgba(18, 51, 56, 0.75);
}

.feature-card__frame {
    margin-top: auto;
    width: min(320px, 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.feature-card__frame img {
    width: min(240px, 100%);
    height: auto;
    object-fit: contain;
    display: block;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* 競爭優勢（截圖樣式） */
.advantage {
    padding: 0;
    background: var(--secondary-color);
}

.advantage-header {
    /* 大區塊間距：整體更緊密 */
    padding: 52px 10% 10px;
    text-align: center;
    background: var(--secondary-color);
}

.advantage-title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.advantage-stage {
    background: transparent;
    /* 大區塊間距：整體更緊密 */
    padding: 14px 10% 52px;
}

.advantage-card {
    max-width: 1240px;
    margin: 0 auto;
    background: #fff;
    border-radius: 44px;
    padding: 26px 44px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.advantage-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.advantage-cards {
    display: none;
}

.advantage-item {
    background: rgba(255, 226, 179, 0.28);
    border: 1px solid rgba(18, 51, 56, 0.12);
    border-radius: 22px;
    padding: 16px 16px 14px;
    display: grid;
    gap: 12px;
}

.advantage-item__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 51, 56, 0.08);
    color: var(--text-dark);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.advantage-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.advantage-check::before {
    content: "";
    width: 22px;
    height: 22px;
    display: inline-block;
    background: url("../images/HODALA_check.svg") no-repeat center / contain;
    flex: 0 0 22px;
}

.advantage-item__block {
    background: #fff;
    border-radius: 18px;
    padding: 12px 14px;
}

.advantage-item__head {
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.advantage-item__text {
    font-weight: 800;
    color: rgba(18, 51, 56, 0.72);
    line-height: 1.35;
}

.advantage-item__block--muted .advantage-item__head {
    color: rgba(18, 51, 56, 0.55);
}

.advantage-item__block--muted .advantage-item__text {
    color: rgba(18, 51, 56, 0.55);
}

.advantage-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    min-width: 860px;
}

.advantage-table th,
.advantage-table td {
    border-bottom: 0;
    padding: 18px 22px;
    text-align: left;
    vertical-align: middle;
}

.advantage-table thead th {
    text-align: center;
}

.advantage-table tbody td:first-child {
    text-align: center;
}

.advantage-table thead th {
    font-size: 2.1rem;
    font-weight: 800;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(18, 51, 56, 0.4);
}

.advantage-table thead th:nth-child(3) {
    color: rgba(18, 51, 56, 0.4);
}

.advantage-table tbody td {
    font-size: 1.9rem;
    font-weight: 700;
}

.advantage-table tbody td:nth-child(1),
.advantage-table tbody td:nth-child(2) {
    color: var(--text-dark);
}

.advantage-table tbody td:nth-child(3) {
    color: rgba(18, 51, 56, 0.45);
}

.advantage-table tbody td:nth-child(1) {
    width: 140px;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

th,
td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #fdfdfd;
}

/* 最後一張（關於 HODALA + 底部導覽） */
.about-final {
    background: var(--secondary-color);
    /* 大區塊間距：整體更緊密 */
    padding: 28px 10% 0;
}

.about-final__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: center;
    background: rgba(255, 226, 179, 0.25);
    border-radius: 28px;
    padding: 72px 64px;
    overflow: hidden;
}

.about-final__content h2 {
    margin: 0 0 18px;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.about-final__content p {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(18, 51, 56, 0.5);
    line-height: 1.7;
}

.about-final__actions {
    margin-top: 22px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.about-final__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
    padding: 18px 26px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
}

.about-final__cta:hover {
    filter: brightness(0.98);
}

.about-final__art {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.about-final__art img {
    width: min(520px, 38vw);
    height: auto;
    object-fit: contain;
    transform: translate(10%, 6%);
}

.site-footer {
    background: #000;
    color: #fff;
    /* 讓 footer 視覺厚度接近 navbar（72px） */
    padding: 4px 10%;
    margin-top: 36px;
}

.site-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--navbar-height);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.site-footer__logo {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.site-footer__name {
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.6rem;
}

.site-footer__nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.site-footer__nav a:hover {
    text-decoration: underline;
}

/* RWD */
@media (max-width: 1024px) {
    .hero {
        padding: 28px 10% 44px;
    }

    .hero-banner-card {
        padding: 64px 52px;
    }

    .hero-banner-icon {
        width: 160px;
    }

    .hero-banner-title {
        font-size: 4.2rem;
    }

    .hero-banner-subtitle {
        font-size: 1.55rem;
    }

    .product-title {
        font-size: 2.8rem;
    }

    .product-stage {
        gap: 36px;
    }

    .product-demo-title {
        font-size: 2.8rem;
    }


    .product-demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advantage-title {
        font-size: 2.8rem;
    }


    .advantage-table {
        min-width: 820px;
    }

    .about-final__inner {
        padding: 56px 44px;
        grid-template-columns: 1fr 1fr;
    }

    .about-final__content h2 {
        font-size: 2.8rem;
    }

    .about-final__content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 12px 10%;
        gap: 12px;
    }

    .nav-header {
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 6px;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 250ms ease, opacity 200ms ease;
    }

    .navbar.is-open .nav-links {
        max-height: 360px;
        opacity: 1;
        pointer-events: auto;
        padding-top: 8px;
    }

    .nav-links a {
        display: block;
        white-space: nowrap;
        font-size: 14px;
        line-height: 1.2;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: rgba(18, 51, 56, 0.06);
    }

    .hero {
        padding: 22px 10% 34px;
    }

    .hero-banner-card {
        padding: 44px 26px;
    }

    .hero-banner-brand {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .hero-banner-icon {
        width: 140px;
    }

    .hero-banner-title {
        font-size: 3.2rem;
    }

    .hero-banner-subtitle {
        font-size: 1.2rem;
    }

    .product-showcase {
        padding: 28px 10%;
    }

    .product-title {
        font-size: 2.2rem;
    }

    .product-stage {
        margin-top: 10px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-mascot {
        display: none;
    }

    .product-card {
        padding: 26px;
    }

    .product-card h3 {
        font-size: 2.2rem;
        margin-bottom: 18px;
        text-align: left;
    }

    .product-intro {
        font-size: 1.15rem;
        padding: 18px 20px;
        margin-bottom: 20px;
    }

    .chip {
        font-size: 0.95rem;
        padding: 10px 8px;
    }


    .feature-grid {
        padding: 0 10%;
        gap: 20px;
    }

    .feature-card h1 {
        font-size: 1.9rem;
    }

    .feature-card p {
        font-size: 1.05rem;
    }

    th,
    td {
        padding: 14px;
    }

    .product-demo {
        padding: 40px 10%;
    }

    .product-demo-grid {
        margin-top: 22px;
    }

    .product-demo-title {
        font-size: 2.2rem;
    }


    .product-demo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }


    .phone {
        border-radius: 32px;
    }

    .phone__body h3 {
        font-size: 1.6rem;
    }

    .phone__body p {
        font-size: 1.05rem;
    }

    /* 關於 HODALA：行動版重新排版（單欄、置中、不外溢） */
    .about-final {
        padding: 32px 10% 0;
    }

    .about-final__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        overflow: hidden;
        padding: 28px 18px;
    }

    .about-final__content {
        width: 100%;
        max-width: 520px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-final__actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-final__cta {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 16px 18px;
        box-sizing: border-box;
    }

    .about-final__art {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-final__art img {
        width: min(360px, 78vw);
        transform: none;
        margin: 0 auto;
    }

}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 9px 10px;
    }


    .hero {
        padding: 18px 10% 28px;
    }

    .hero-banner-card {
        padding: 34px 18px;
    }

    .hero-banner-icon {
        width: 120px;
    }

    .hero-banner-title {
        font-size: 2.7rem;
    }

    .hero-banner-subtitle {
        font-size: 1.05rem;
        margin-top: 10px;
    }


    .section-title {
        font-size: 1.6rem;
        margin: 25px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card h1 {
        font-size: 1.7rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .advantage-header {
        padding: 56px 10% 18px;
    }

    .advantage-title {
        font-size: 2.2rem;
    }

    .advantage-stage {
        padding: 18px 10% 40px;
    }

    .advantage-card {
        border-radius: 28px;
        padding: 18px 16px;
    }

    .advantage-table {
        min-width: 760px;
    }

    .advantage-scroll {
        display: none;
    }

    .advantage-cards {
        display: grid;
        gap: 14px;
    }

    .advantage-item__label {
        font-size: 1.05rem;
    }

    .advantage-item__head {
        font-size: 1.05rem;
    }

    .advantage-item__text {
        font-size: 1.05rem;
    }

    .about-final {
        padding: 40px 10% 0;
    }

    .about-final__inner {
        grid-template-columns: 1fr;
        padding: 34px 22px;
        gap: 22px;
        /* 行動版內容不要超出圓角匡 */
        overflow: hidden;
        justify-items: center;
    }

    .about-final__content h2 {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .about-final__content p {
        font-size: 1.15rem;
    }

    .about-final__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-final__art {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .about-final__art img {
        width: min(360px, 78vw);
        transform: none;
        margin: 0 auto;
    }

    .about-final__actions {
        width: 100%;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .about-final__cta {
        width: 100%;
        max-width: 320px;
        padding: 16px 20px;
        margin: 0 auto;
        align-self: center;
        box-sizing: border-box;
    }

    .site-footer {
        padding: 12px 10%;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__nav {
        justify-content: flex-start;
        gap: 18px 22px;
    }

    table {
        min-width: 640px;
    }
}