/* 官網改版原型：接在 style.css 之後（定案後併入）。品牌色沿用，亮點只放在首屏的風景與圖文選單輪播 */
:root { --deep: #0c3a35; --gold: #f2c14e; --display: "Chiron GoRound TC", "PingFang TC", sans-serif; --dw: 700; --hand: var(--display); }
h1, h2, .v2 h3, .v2 summary { font-family: var(--display); font-weight: var(--dw); text-wrap: balance; }
section + section { border-top: 0; }

/* 首屏 */
.v2 .top { position: absolute; left: 0; right: 0; background: none; border: 0; backdrop-filter: none; }
.v2 .top .brand-word [fill="#1A7F73"] { fill: #fff; }
.v2 .top .brand-word [stroke="#1A7F73"] { stroke: #fff; }
.v2 .top .plans-link { background: rgba(255,255,255,.18); color: #fff; }
.v2 .top .plans-link:hover { background: rgba(255,255,255,.3); }
.v2 .top .login-link, .v2 .top nav a { color: #fff; }
.v2 .top .btn.small { background: #fff; color: var(--jade-deep); }
.sky { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: #fff; }
.sky-bg { position: absolute; inset: 0; z-index: -2; }
.sky-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s; }
.sky-bg img.on { opacity: 1; }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(9,44,40,.6), rgba(9,44,40,.46) 34%, rgba(9,44,40,.08) 62%, rgba(9,44,40,.3)); }
.sky .wrap { display: grid; gap: 30px; padding-top: 96px; padding-bottom: 104px; }
.sky h1, .sky .lede, .offer h1, .offer .sub { text-shadow: 0 2px 18px rgba(6,32,29,.45); }
.sky h1 { font-size: clamp(42px, 12.6vw, 84px); line-height: 1.22; letter-spacing: .01em; }
.sky h1 span { display: block; white-space: nowrap; }
.sky .lede { color: #e8f3f0; font-size: 17px; max-width: 27em; margin-top: 14px; }
.sky .hero-cta { margin-top: 22px; }
.sky .btn { background: var(--gold); color: #3b2a00; }
.sky .btn:hover { background: #ffd56f; }
.sky .btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.sky .btn.ghost:hover { background: rgba(255,255,255,.24); }
.sky .cta-note { margin-top: 12px; font-size: 14px; color: #d5e8e3; }
.device { position: relative; justify-self: center; width: min(100%, 330px); }
/* 手機外框照真手機的比例（約 9:19），聊天區撐滿剩下的高度 */
.liner { width: 272px; max-width: 100%; aspect-ratio: 9 / 19; margin-inline: auto; display: flex; box-sizing: border-box; }
.liner-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.liner .msgs { flex: 1; align-content: end; }
.liner .fcard { width: 86%; }
.liner { border-radius: 38px; padding: 9px; background: #10211f; box-shadow: 0 30px 70px rgba(4,26,23,.5); }
.liner-in { border-radius: 30px; overflow: hidden; background: var(--chat-bg); color: var(--ink); }
.liner .chat-bar { height: 52px; }
.liner .chat-bar b { transition: opacity .3s; }
.liner .msgs { min-height: 96px; align-content: end; font-size: 14px; }
.liner .menus { position: relative; aspect-ratio: 2500 / 1686; background: #fff; }
.liner .menus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.liner .menus img.on { opacity: 1; }
.liner .menu-foot { text-align: center; padding: 8px 0 11px; background: #fff; font-size: 12px; color: var(--ink-soft); }
.swatches { margin-top: 16px; display: flex; justify-content: center; gap: 10px; }
.swatches button { position: relative; width: 50px; height: 50px; padding: 0; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; overflow: hidden; background: none; cursor: pointer; transition: transform .25s, border-color .25s; }
.swatches button[aria-pressed="true"] { border-color: #fff; border-width: 4px; transform: scale(1.12); }
.swatches img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatches button:focus-visible { outline-color: #fff; }
.sample { margin-top: 10px; text-align: center; font-size: 13px; color: #e3efec; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* 操作畫面：真 App 截圖 */
.flow { background: #fff; }
.flow-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 68px; }
.flow-item { display: grid; gap: 22px; }
.flow-item h3 { font-size: 27px; line-height: 1.35; }
.flow-item p { margin-top: 6px; color: var(--ink-soft); max-width: 30em; }
.flow-item .who { font-size: 15px; font-weight: 700; color: var(--jade); margin: 0 0 2px; }
.shots { display: flex; justify-content: center; align-items: flex-start; }
.shot { width: min(72%, 270px); border-radius: 30px; padding: 7px; background: #10211f; box-shadow: 0 22px 50px rgba(15,60,54,.2); }
.shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
.shots.two .shot { width: 48%; max-width: 250px; border-radius: 24px; padding: 5px; }
.shots.two .shot img { border-radius: 19px; }
.shots.two .shot + .shot { margin: 46px 0 0 4%; }
.flow-item.menu .shots { display: block; }
.flow-item.menu .shots img { width: 100%; height: auto; display: block; border-radius: 16px; }
.flow-item.menu .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-item.menu .pair img:first-child { grid-column: 1 / -1; }

/* 進階版主打：AI */
.aiband { background: var(--deep); color: #fff; }
.aiband .chat { color: var(--ink); }
.aiband .sub { color: #cfe3de; }
.aiband .ai-points li { color: #cfe3de; border-color: rgba(255,255,255,.18); }
.aiband .ai-points b { color: #fff; }
.aiband .ai-who { color: var(--gold); }
.aiband .ai-note { color: #a9c9c2; }
.aiband .beta-pill { background: var(--gold); box-shadow: none; color: #3b2a00; }
.aiband .text-link { color: #fff; }

.four { background: var(--surface); }
.dawn { background: var(--deep) url(/assets/v2/bg-forest.jpg) center 35% / cover; position: relative; isolation: isolate; color: #fff; text-align: center; }
.dawn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9,44,40,.6); }
.dawn h2 { font-size: clamp(22px, 7.4vw, 56px); white-space: nowrap; }
.dawn .sub { margin-inline: auto; color: #e8f3f0; }
.dawn .btn { margin-top: 26px; background: var(--gold); color: #3b2a00; }

/* 方案頁 */
.offer { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #fff; }
.offer-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(9,44,40,.58), rgba(9,44,40,.36)); }
.offer .wrap { padding-top: 92px; padding-bottom: 44px; }
.offer h1 { font-size: clamp(36px, 10vw, 64px); line-height: 1.25; }
.offer h1 span { display: block; white-space: nowrap; }
.offer .sub { color: #e8f3f0; }
.plans-body { padding-top: 0; }
.v2 .bill { margin: 26px 0 0; border-color: rgba(255,255,255,.4); }
.v2 .bill button { color: #fff; }
.v2 .bill button[aria-checked="true"] { background: #fff; color: var(--jade-deep); }

@media (min-width: 960px) {
    .sky .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; min-height: min(880px, 100vh); padding-top: 100px; padding-bottom: 72px; gap: 48px; }
    .sky::before { background: linear-gradient(90deg, rgba(9,44,40,.68), rgba(9,44,40,.3) 55%, transparent 80%), linear-gradient(rgba(9,44,40,.42), transparent 20%); }
    .sky .lede { font-size: 20px; }
    .sky .lede span { display: inline; }
    .flow-list { gap: 120px; margin-top: 72px; }
    .flow-item { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 64px; }
    .flow-item:nth-child(even) .flow-text { order: 2; }
    .flow-item h3 { font-size: 38px; }
    .shots.two .shot { border-radius: 32px; padding: 7px; }
    .shots.two .shot img { border-radius: 25px; }
    .dawn { padding: 140px 0; }
    .offer .wrap { padding-top: 120px; padding-bottom: 72px; }
}
/* 首屏已有按鈕，捲過首屏才浮出 */
.v2 .fabs.hold { opacity: 0; transform: translateY(16px); }
.v2 .fabs.hold .fab { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sky-bg img, .liner .menus img, .swatches button { transition: none; } }

.lines span { display: inline-block; white-space: nowrap; }
.v2 p, .v2 li { text-wrap: pretty; }
.v2 .after { text-wrap: balance; }

/* 手機示意（聊天室只用 LINE 本來的樣子）：2 頁首同聊天室底色、3 只露出選單與訊息、4 只留選單 */
.liner-in { position: relative; }
[data-look="3"] .liner .chat-bar, [data-look="4"] .liner .chat-bar, [data-look="5"] .liner .chat-bar { background: transparent; border: 0; height: 46px; }
[data-look="3"] .liner .msgs, [data-look="4"] .liner .msgs, [data-look="5"] .liner .msgs { min-height: 84px; padding-top: 4px; }
[data-look="3"] .liner .menu-foot, [data-look="4"] .liner .menu-foot, [data-look="5"] .liner .menu-foot { padding: 4px 0 6px; font-size: 11px; line-height: 1.5; background: var(--c-foot); color: var(--c-dim); }
/* 聊天室配色（首頁手機示意與 AI 對話共用）：3 綠、4 深藍灰、5 深綠 */
[data-look="4"] { --c-room: #24303f; --c-card: #3a4a5d; --c-foot: #18212c; --c-text: #f0f3f6; --c-dim: #c3ccd6; --c-me: #2f8f80; --c-me-text: #fff; --c-em: #fff; --c-line: #52647a; --c-edge: #4a5b70; }
[data-look="3"] :is(.liner-in, .ai-chat), [data-look="4"] :is(.liner-in, .ai-chat), [data-look="5"] :is(.liner-in, .ai-chat) { background: var(--c-room); color: var(--c-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .chat-bar { background: transparent; border: 0; color: var(--c-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .chat-bar i { background: var(--c-card); color: var(--c-em); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .bubble { background: var(--c-card); color: var(--c-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .bubble.me { background: var(--c-me); color: var(--c-me-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .ai-chat { border-color: var(--c-edge); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) :is(.ai-chat, .liner) .fcard { background: var(--c-card); color: var(--c-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) :is(.ai-chat, .liner) :is(.fcard small, dt) { color: var(--c-dim); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) :is(.ai-chat, .liner) dd { color: var(--c-text); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) :is(.ai-chat, .liner) .when { color: var(--c-em); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) :is(.ai-chat, .liner) dl { border-color: var(--c-line); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .ai-chat .fcard-btns span { background: transparent; color: var(--c-em); border-color: var(--c-line); box-shadow: inset 0 0 0 1px var(--c-line); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .ai-chat .fcard-btns .ok { background: var(--jade); color: #fff; box-shadow: none; border-color: var(--jade); }
:is([data-look="3"], [data-look="4"], [data-look="5"]) .ai-chat .chat-input { background: var(--c-foot); color: var(--c-dim); }

/* 方案頁：1 現有、2 三欄並列、3 頁籤、4 逐級累加 */
.tiers-sec .tabs { display: none; }
.tiers-sec { background: #fff; padding: 0 0 24px; }
[data-plan]:not([data-plan="1"]) .offer .wrap { padding-bottom: 44px; }
.tier h2 { font-size: 27px; }
.tier .pitch { margin-top: 2px; font-size: 15px; color: var(--ink-soft); }
.tier .price { margin-top: 12px; }
.tier .price b { font-size: 46px; color: var(--jade-deep); }
.tier .btn { width: 100%; margin-top: 16px; min-height: 52px; background: #fff; color: var(--jade-deep); box-shadow: inset 0 0 0 2px var(--jade); }
.tier .btn:hover { background: var(--jade); color: #fff; }
.tier .inc { font-size: 14px; color: var(--ink-soft); }
.tier ul { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 7px; font-size: 16px; line-height: 1.6; }
.tier li { padding-left: 24px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--jade); font-weight: 700; }
.tier .beta-pill { font-size: 12px; margin: 0 2px 0 6px; padding: 0 9px; }
.tier .strip { margin: 0 0 14px; }

[data-plan="2"] .tiers-sec { padding-top: 0; }
[data-plan="2"] .tiers { margin: 0 -20px; padding: 24px 20px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; position: relative; }
[data-plan="2"] .tiers::-webkit-scrollbar { display: none; }
[data-plan="2"] .tier { scroll-snap-align: center; border: 1px solid var(--line-strong); border-radius: 22px; padding: 24px 20px 26px; background: #fff; }
[data-plan="2"] .tier .pitch { min-height: 1.75em; }
[data-plan="2"] .tier-body { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
[data-plan]:not([data-plan="2"]) .tiers-sec .dots { display: none; }
@media (min-width: 600px) { [data-plan="2"] .tiers { grid-auto-columns: 46%; } }
[data-plan="2"] .strip { display: none; }


@media (min-width: 960px) {
    [data-plan="2"]:not([data-plan="1"]) .offer .wrap { padding-bottom: 180px; }
    [data-plan="2"] .tiers-sec { background: none; position: relative; z-index: 1; }
    [data-plan="2"] .tiers { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -130px 0 0; padding: 0; overflow: visible; }
    [data-plan="2"] .tier { padding: 30px 28px 34px; border: 0; box-shadow: 0 18px 50px rgba(4,26,23,.16); }
}
[data-plan]:not([data-plan="1"]) .pro-col { background: none !important; }

.more { background: var(--surface); }
.more ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; }
.more li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.more li b { display: block; color: var(--ink); font-size: 19px; }
.more .beta-pill { font-size: 12px; margin-left: 8px; padding: 0 9px; }
.more .wrap > p { margin-top: 22px; color: var(--ink-soft); }
@media (min-width: 720px) { .more ul { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* AI 內容：方案設定開放才顯示（ai.js） */
html:not(.ai-on) [data-ai] { display: none !important; }
/* 新版頁首不固定在上方，比較表表頭貼齊頂端 */
.v2 .phead { top: 0; }

.chat-note { margin-top: 12px; text-align: center; font-size: 13px; color: #cfe3de; }
.ai-stage { flex-direction: column; align-items: center; }
/* LINE 官方圖示：原樣使用，手機最小 40px，周圍留白 */
.v2 .foot-contact a { height: 60px; gap: 12px; padding-left: 10px; }
.v2 .foot-contact img { display: block; width: 40px; height: 40px; }
.v2 .foot-contact svg { width: 40px; height: 40px; }
/* AI 對話用墨綠（首頁手機示意維持深藍灰） */
[data-look] .ai-chat { --c-room: #071f1c; --c-card: #1c4841; --c-foot: #123630; --c-text: #eef6f4; --c-dim: #b4cfc9; --c-me: #2f9383; --c-line: #3b6a61; --c-edge: #3f746a; }

/* 行業頁：靜態風景首屏；頁尾圖示全站一致 */
.foot-contact a { height: 60px; gap: 12px; padding-left: 10px; }
.foot-contact img, .foot-contact svg { display: block; width: 40px; height: 40px; }
.sky.industry h1 { font-size: clamp(34px, 9.6vw, 62px); }
.sky.industry .wrap { padding-bottom: 64px; }
.v2 .end { text-align: center; }
.v2 .end .sub { margin-inline: auto; }
@media (min-width: 960px) { .sky.industry .wrap { min-height: 720px; } }
.price .eb-tag { flex-basis: 100%; }
.tier [hidden], .phead [hidden] { display: none !important; }

/* AI 對話也用手機的比例 */
.chat.ai-chat { width: 272px; max-width: 100%; height: 552px; border-radius: 34px; }
.ai-chat .msgs { flex: 1; align-content: end; }
