/* =========================================================
   AI COMMERCE — 首頁樣式
   色值取自美工圖量測：
     品牌主色 #3C1EE4 / CTA 帶 #542AF0 / 頁尾 #000818
     區塊底色 #F8F8F8、#F0F0F8
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --brand: #3c1ee4;
    --brand-600: #3518d0;
    --brand-700: #2d14b4;
    --brand-soft: #f0f0f8;
    --brand-tint: #ede9ff;
    --cta: #542af0;
    --violet: #8472f0;

    --ink: #0b1020;
    --ink-2: #3a3f55;
    --muted: #6b7280;
    --line: #e7e7f0;
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --bg-soft: #f0f0f8;
    --footer: #000818;

    --up: #10b981;
    --hot: #ea000c;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;

    --sh-sm: 0 2px 8px rgba(11, 16, 32, 0.05);
    --sh-md: 0 10px 28px rgba(11, 16, 32, 0.08);
    --sh-lg: 0 24px 60px rgba(11, 16, 32, 0.12);

    --container: 1200px;
    --font: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.32;
    font-weight: 800;
}
p {
    margin: 0;
}
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    z-index: 200;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 92px 0;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(27px, 3.2vw, 38px);
    letter-spacing: -0.4px;
}
.section-head .sub {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.section-head .lede {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

/* ---------- 圖示 sprite ----------
   線性圖示以 currentColor 上色，底色與線色取自美工圖量測：
     淺紫底 #F0E6FA / 紫線 #5A32FA
     薄荷底 #DCF0E6 / 綠線 #00BE78
     淺藍底 #E6F0FA / 藍線 #005AF0
     淺紅底 #FCE8E8 / 紅線 #EA000C
   ------------------------------------------------------------ */
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hl-icon svg,
.f-icon svg,
.t-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 用雙類別選擇器提高特異性，否則會被後面 .f-icon/.hl-icon/.t-icon 的 background 覆蓋 */
.hl-icon.tint-violet,
.f-icon.tint-violet,
.t-icon.tint-violet {
    background: #f0e6fa;
    color: #5a32fa;
}
.hl-icon.tint-green,
.f-icon.tint-green,
.t-icon.tint-green {
    background: #dcf0e6;
    color: #00a866;
}
.hl-icon.tint-blue,
.f-icon.tint-blue,
.t-icon.tint-blue {
    background: #e6f0fa;
    color: #005af0;
}
.hl-icon.tint-red,
.f-icon.tint-red,
.t-icon.tint-red {
    background: #fce8e8;
    color: #ea000c;
}

/* ---------- Buttons ---------- */
.btn {
    --bg: transparent;
    --fg: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        background-color 0.18s,
        border-color 0.18s,
        color 0.18s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 14px;
}
.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

.btn-primary {
    --bg: var(--brand);
    --fg: #fff;
    box-shadow: 0 10px 24px rgba(60, 30, 228, 0.28);
}
.btn-primary:hover {
    --bg: var(--brand-600);
    box-shadow: 0 16px 32px rgba(60, 30, 228, 0.36);
}

.btn-outline {
    --fg: var(--ink);
    border-color: var(--line);
    background: #fff;
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-text {
    --fg: var(--ink-2);
    padding-inline: 12px;
}
.btn-text:hover {
    color: var(--brand);
}

.btn-light {
    --bg: #fff;
    --fg: var(--brand);
}
.btn-ghost-light {
    --fg: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* 了解更多 → */
.more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}
.more span {
    transition: transform 0.2s;
}
.more:hover span {
    transform: translateX(4px);
}
.more-lg {
    margin-top: 22px;
    font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        box-shadow 0.25s,
        border-color 0.25s;
}
.site-header.is-stuck {
    border-color: var(--line);
    box-shadow: var(--sh-sm);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand-text {
    display: grid;
    line-height: 1.2;
}
.brand-text strong {
    font-size: 16px;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.brand-text small {
    font-size: 12px;
    color: var(--muted);
}

.nav-desktop {
    margin-inline: auto;
}
.nav-desktop ul {
    display: flex;
    gap: 4px;
}
.nav-desktop a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    transition:
        background-color 0.18s,
        color 0.18s;
}
.nav-desktop a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.nav-toggle-bars {
    display: grid;
    gap: 5px;
    justify-items: center;
}
.nav-toggle-bars i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition:
        transform 0.22s,
        opacity 0.22s;
}
.nav-toggle[aria-expanded='true'] i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] i:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded='true'] i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 10px 24px 22px;
}
.mobile-nav a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
}
.mobile-nav-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 64px;
    background: radial-gradient(900px 420px at 8% -10%, #efebff 0%, rgba(239, 235, 255, 0) 68%), radial-gradient(760px 380px at 96% 6%, #e9f0ff 0%, rgba(233, 240, 255, 0) 70%), var(--bg-alt);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}
.hero-slides {
    position: relative;
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero-slide h1 {
    font-size: clamp(30px, 3.9vw, 48px);
    font-weight: 900;
    letter-spacing: -0.8px;
}
.hero-slide h1 em {
    font-style: normal;
    color: var(--brand);
}
.hero-slide p {
    margin-top: 20px;
    max-width: 30em;
    font-size: 17px;
    color: var(--muted);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* 勾選要點：免費試用 / 快速上手 */
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 24px;
}
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-2);
}
.hero-points svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

/* ---------- 筆記型電腦外框 ----------
   外框固定不動，只有螢幕內的畫面輪播（見 1/描述.docx 前台介紹頁）
   ------------------------------------------------------------ */
.hero-visual {
    min-width: 0;
}

.laptop {
    position: relative;
}
.laptop-screen {
    position: relative;
    padding: 16px 16px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #33334a 0%, #1a1a28 100%);
    box-shadow: var(--sh-lg);
}
.laptop-screen::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: #4a4a66;
}
.laptop-base {
    position: relative;
    height: 13px;
    margin: 0 -26px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #3d3d55 0%, #232331 60%, #16161f 100%);
    box-shadow: 0 18px 32px rgba(11, 16, 32, 0.24);
}
.laptop-base::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 88px;
    height: 5px;
    margin-left: -44px;
    margin-top: 3px;
    border-radius: 0 0 6px 6px;
    background: rgba(255, 255, 255, 0.14);
}

.mockup {
    position: relative;
    display: grid;
    /* 畫面為設計稿截圖，比例固定 815 × 585 */
    aspect-ratio: 815 / 585;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}

/* 螢幕畫面（<img>）：與左側文字同步輪播 */
.screen {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.012);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s;
}
.screen.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* 五顆點（尺寸取自設計稿：相對筆電寬度 10.1% / 16.1%，高約 1.7%） */
.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}
.hero-dots button {
    width: 56px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d5d5e4;
    cursor: pointer;
    transition:
        background-color 0.25s,
        width 0.25s;
}
.hero-dots button[aria-selected='true'] {
    width: 88px;
    background: var(--brand);
}

/* ---------- 四個亮點 ---------- */
.highlights {
    padding: 34px 0 10px;
    background: var(--bg);
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.highlight-grid li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 22px;
}
.hl-copy {
    min-width: 0;
}
.hl-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: #e9e5fd;
    color: var(--brand);
}
.hl-icon svg {
    width: 40px;
    height: 40px;
}
.highlight-grid h3 {
    font-size: 20px;
    font-weight: 800;
}
.highlight-grid p {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
}

/* ---------- 定價方案（5 檔，配色沿用後台方案等級色） ---------- */
.section-pricing {
    background: var(--bg);
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.plan-card {
    --level: var(--brand);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--level);
    box-shadow: var(--sh-lg);
}
.plan-card--free {
    --level: #1f6cfc;
}
.plan-card--starter {
    --level: #12a24a;
}
.plan-card--pro {
    --level: #f09600;
}
.plan-card--growth {
    --level: #b47e12;
}
.plan-card--enterprise {
    --level: #001a49;
}

.plan-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--level);
}
.plan-name {
    font-size: 17px;
    font-weight: 800;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 10px;
    color: var(--level);
}
.plan-price strong {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.6px;
}
.plan-price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.plan-desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}
.plan-features {
    flex: 1 1 auto;
    align-content: start;
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
}
.plan-features svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    fill: none;
    stroke: var(--level);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.plan-cta {
    width: 100%;
    margin-top: 20px;
}
.plan-note {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- 功能卡（3×2） ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    padding: 30px 26px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    box-shadow: none;
    transition:
        transform 0.22s,
        box-shadow 0.22s,
        border-color 0.22s,
        background-color 0.22s;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: #d9d0ff;
    background: #fff;
}
.f-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--brand-tint);
}
.f-icon svg {
    width: 26px;
    height: 26px;
}
.feature h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
}

/* ---------- AI 智能工具 ---------- */
.section-tools {
    background: var(--bg);
    padding: 76px 0;
}

.tools-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.6fr);
    gap: 36px;
    align-items: center;
    padding: 46px 40px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #f4f1ff 0%, #ece7ff 100%);
}
.tools-copy h2 {
    font-size: clamp(24px, 2.6vw, 32px);
}
.tools-copy .lede {
    margin-top: 14px;
    font-size: 15px;
    color: var(--muted);
}
.tools-cta {
    margin-top: 26px;
    background: transparent;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tool {
    position: relative;
    padding: 18px 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition:
        transform 0.22s,
        box-shadow 0.22s;
}
.tool:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
}
.tool h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.tool p {
    font-size: 13px;
    color: var(--muted);
}

/* 卡片內的迷你介面示意 */
.shot {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    height: 132px;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-alt);
    overflow: hidden;
}
.shot-side {
    display: grid;
    gap: 6px;
    align-content: start;
    padding-top: 2px;
}
.shot-side i {
    display: block;
    height: 7px;
    border-radius: 3px;
    background: #dcdce8;
}
.shot-side i:first-child {
    width: 80%;
    background: var(--brand);
    opacity: 0.5;
}
.shot-body {
    display: grid;
    gap: 8px;
    align-content: start;
}
.shot-title {
    display: block;
    height: 8px;
    width: 56%;
    border-radius: 3px;
    background: #c9c9dc;
}
.shot-line {
    display: block;
    height: 6px;
    width: var(--w, 70%);
    border-radius: 3px;
    background: #e3e3ef;
}
.shot-bars,
.shot-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 58px;
}
.shot-bars i,
.shot-chart i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(180deg, var(--violet) 0%, var(--brand) 100%);
}
.shot-chart i {
    background: linear-gradient(180deg, #9c8cff 0%, var(--cta) 100%);
}
.shot-donut {
    display: block;
    width: 58px;
    height: 58px;
    margin-top: 2px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) 0 62%, #cfcfdd 62% 100%);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
    mask: radial-gradient(circle, transparent 52%, #000 54%);
}
.shot-pie {
    display: block;
    width: 74px;
    height: 74px;
    margin: 2px auto 0;
    border-radius: 50%;
    background: conic-gradient(#4b7bf5 0 32%, #f05a5a 32% 55%, #f5c13f 55% 74%, #35c08a 74% 100%);
}
.shot-rows {
    display: grid;
    gap: 6px;
}
.shot-rows b {
    display: block;
    height: 7px;
    width: var(--w, 70%);
    border-radius: 3px;
    background: #e3e3ef;
}

.t-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--brand-tint);
}
.t-icon svg {
    width: 25px;
    height: 25px;
}

.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}
.badge-new {
    background: var(--brand);
}
.badge-hot {
    background: var(--hot);
}

/* ---------- 信賴 logo 牆 ---------- */
.trust {
    padding: 56px 0 64px;
    background: var(--bg-soft);
}
.trust-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}
/* ---------- 合作商戶跑馬燈 ----------
   兩排反向滾動；每排的 logo 在 DOM 中複製一份，
   位移 -50% 時剛好接回原始序列的起點，形成無縫循環。
   ------------------------------------------------------------ */
.marquee {
    display: grid;
    gap: 14px;
    /* 兩側淡出遮罩，讓 logo 從邊緣自然進出 */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-row {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: marquee-left var(--dur, 46s) linear infinite;
}
.marquee-track[data-dir='right'] {
    animation-name: marquee-right;
}

.marquee-track li {
    display: flex;
    flex: none;
}

/* 滑入暫停整排，方便點擊 */
.marquee-row:hover .marquee-track,
.marquee-track:focus-within {
    animation-play-state: paused;
}

@keyframes marquee-left {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}
@keyframes marquee-right {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

/* logo 圖形尺寸 */
.m-logo {
    height: 30px;
    width: auto;
}
.m-word {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.4px;
    fill: currentColor;
    stroke: none;
}
.m-italic {
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.8px;
}
.m-serif {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}
.m-hidden {
    display: none;
}

/* logo 超連結：灰階常態，hover / focus 轉為品牌色並微微浮起 */
.logo-link {
    display: flex;
    align-items: center;
    margin: 0 22px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: #8a8fa6;
    text-decoration: none;
    filter: grayscale(1);
    opacity: 0.8;
    transition:
        color 0.2s,
        opacity 0.2s,
        filter 0.2s,
        transform 0.2s,
        background-color 0.2s;
}
.logo-link svg {
    width: auto;
    height: 30px;
    fill: currentColor;
    overflow: visible;
}
.logo-link:hover,
.logo-link:focus-visible {
    color: var(--brand);
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-3px);
    background: rgba(60, 30, 228, 0.05);
}
.logo-link:active {
    transform: translateY(-1px);
}

/* ---------- CTA ---------- */
.cta {
    padding: 76px 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--cta) 100%);
    color: #fff;
    text-align: center;
}
.cta-inner h2 {
    color: #fff;
    font-size: clamp(25px, 3vw, 35px);
}
.cta-inner p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* ---------- 頁尾 ---------- */
.site-footer {
    background: var(--footer);
    color: #9aa0bc;
    padding: 62px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
}
.site-footer h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}
.site-footer .brand-text strong {
    color: #fff;
}
.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}
.site-footer ul {
    display: grid;
    gap: 10px;
}
.site-footer a {
    font-size: 14px;
    transition: color 0.18s;
}
.site-footer a:hover {
    color: #fff;
}

.socials {
    display: flex !important;
    gap: 10px;
    margin-top: 20px;
}
.socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s;
}
.socials a:hover {
    background: var(--brand);
    color: #fff;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: #c9cce8;
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.lang-btn:hover {
    border-color: var(--brand);
    color: #fff;
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #6c7391;
}

/* ---------- 回到頂端 ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--sh-md);
    cursor: pointer;
    transition: transform 0.2s;
}
.to-top:hover {
    transform: translateY(-3px);
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 18px;
    }
    .plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tools-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 980px) {
    .nav-desktop,
    .header-actions {
        display: none;
    }
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nav-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero {
        padding: 48px 0 56px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .hero-slide p {
        max-width: none;
    }

    .section {
        padding: 68px 0;
    }
    .section-tools {
        padding: 56px 0;
    }
    .tools-panel {
        padding: 32px 24px;
    }
    .tool-grid {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 18px;
    }
    .plan-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .section {
        padding: 54px 0;
    }
    .section-head {
        margin-bottom: 34px;
    }

    /* 手機版亮點列依設計稿維持 2×2（見 1/前台介紹頁-描述.png 手機版） */
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 14px;
    }
    .highlight-grid li {
        gap: 10px;
        padding: 0;
    }
    .hl-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    .hl-icon svg {
        width: 23px;
        height: 23px;
    }
    .highlight-grid h3 {
        font-size: 15px;
    }
    .highlight-grid p {
        margin-top: 3px;
        font-size: 12.5px;
        line-height: 1.7;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta .btn {
        flex: 1 1 auto;
    }

    /* 手機版：AI 工具卡改單欄、筆電外框縮窄 */
    .tool-grid {
        grid-template-columns: 1fr;
    }
    .shot {
        height: 118px;
    }
    .laptop-screen {
        padding: 12px 12px 16px;
        border-radius: 18px;
    }
    .laptop-base {
        margin: 0 -16px;
    }

    /* 手機版後台縮圖：改為內容決定高度，避免固定比例把內容裁掉 */
    .mockup {
        aspect-ratio: auto;
    }
    .app {
        grid-template-columns: 34% 1fr;
        grid-template-rows: auto;
    }

    .kpis {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .kpi {
        padding: 6px 7px;
    }
    .kpi strong {
        font-size: 12px;
    }
    .kpi i {
        display: none;
    }

    .ring-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* 收掉次選單與磁貼，保留重點數據 */
    .app-side .app-sub,
    .app-main .quick {
        display: none;
    }
    .orders li {
        grid-template-columns: 1fr auto auto;
    }
    .orders .ava {
        display: none;
    }

    /* 跑馬燈：手機縮小 logo、加快一點，並縮小兩側遮罩範圍 */
    .marquee {
        gap: 10px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    }
    .marquee-track {
        --dur: 34s;
    }
    .logo-link {
        margin: 0 12px;
        padding: 6px 8px;
    }
    .logo-link svg,
    .m-logo {
        height: 22px;
    }
    .m-word {
        font-size: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cta-actions .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }

    /* 關閉跑馬燈滾動，改為可橫向捲動的靜態清單 */
    .marquee-track {
        animation: none !important;
        transform: none !important;
        width: 100%;
        justify-content: flex-start;
    }
    .marquee-row {
        overflow-x: auto;
    }
    .marquee-track li[aria-hidden='true'],
    .marquee-track[data-clone='true'] {
        display: none;
    }
}

@media print {
    .site-header,
    .to-top,
    .hero-dots {
        display: none !important;
    }
    body {
        color: #000;
    }
}
