:root {
    color-scheme: light;
    --ink: #152033;
    --muted: #5f6b7a;
    --line: #06c755;
    --line-dark: #05a947;
    --blue: #2563eb;
    --amber: #b7791f;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --border: #dde3ec;
    --shadow: 0 14px 36px rgba(21, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.compact-home {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Arial, "Noto Sans TC", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.language-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    background: #fff;
    border: 1px solid rgba(21, 32, 51, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(21, 32, 51, 0.16);
}

.lang-trigger,
.language-switcher button.lang-btn {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.language-switcher.active .lang-dropdown {
    display: grid;
    gap: 4px;
}

.language-switcher button.lang-btn {
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    text-align: left;
}

.language-switcher button.lang-btn:hover,
.language-switcher button.lang-btn.active {
    background: #edf3ff;
    color: var(--blue);
}

.clean-nav {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    backdrop-filter: blur(12px);
}

.clean-nav a {
    color: inherit;
    font-weight: 900;
    text-decoration: none;
}

.clean-nav div {
    display: flex;
    gap: 14px;
}

.clean-nav div a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
}

.clean-nav div a:hover {
    color: #fff;
}

.compact-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    height: min(620px, 68vh);
    overflow: hidden;
    background: #101828;
    color: #fff;
}

.compact-hero-media,
.compact-hero-media::after {
    position: absolute;
    inset: 0;
}

.compact-hero-media::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(9, 16, 30, 0.84) 0%, rgba(9, 16, 30, 0.58) 42%, rgba(9, 16, 30, 0.18) 100%),
        linear-gradient(0deg, rgba(9, 16, 30, 0.72), rgba(9, 16, 30, 0.08) 52%);
}

.compact-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.compact-hero-copy {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 84px 0 52px;
    min-width: 0;
}

.home-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    color: #d4f7df;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.home-pill {
    margin-bottom: 18px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.compact-hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: 4rem;
    line-height: 1.08;
    font-weight: 900;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: #eef5ff;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-actions-center {
    justify-content: center;
}

.btn-main,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.btn-main {
    background: var(--line);
    color: #062411;
}

.btn-main:hover {
    background: var(--line-dark);
    color: #fff;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.hero-note {
    margin: 14px 0 0;
    color: #dbe7f6;
}

.hero-note a {
    color: #fff;
    font-weight: 900;
}

.compact-container {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto;
    min-width: 0;
}

.compact-section {
    padding: 58px 0;
}

.compact-section-tight {
    padding: 52px 0;
}

.usage-proof {
    padding: 26px 0;
    background: #f7faf9;
    border-bottom: 1px solid var(--border);
}

.usage-proof-inner {
    display: block;
}

.usage-proof-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.usage-metric {
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.usage-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.usage-metric strong {
    display: block;
    margin-top: 8px;
    color: #0f766e;
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.usage-metric-friends strong {
    color: var(--line-dark);
}

.usage-metric-weekly strong {
    color: #2563eb;
}

.usage-metric strong.is-counting {
    transition: color 0.2s ease, transform 0.2s ease;
    transform: translateY(-1px);
}

.authority-strip {
    padding: 42px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.authority-heading {
    display: grid;
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.authority-heading .eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
}

.authority-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.authority-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.authority-list a {
    display: block;
    min-height: 124px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcff;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.authority-list a:hover {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 8px 18px rgba(21, 32, 51, 0.08);
}

.authority-list span {
    display: block;
    color: var(--blue);
    font-size: 0.88rem;
    font-weight: 900;
}

.authority-list strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    line-height: 1.35;
}

.authority-list small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.compact-band {
    background: var(--soft);
    border-block: 1px solid var(--border);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading .eyebrow,
.compact-section .eyebrow {
    color: var(--blue);
}

.section-heading h2,
.workflow-layout h2,
.voice-layout h2,
.related-layout h2,
.faq-layout h2,
.final-cta h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p:last-child,
.section-copy {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

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

.compact-card,
.compact-link-card,
.related-list a,
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.compact-card {
    padding: 24px;
}

.compact-card i {
    color: var(--line-dark);
    font-size: 1.65rem;
}

.compact-card h3,
.steps-list h3 {
    margin: 14px 0 8px;
    font-size: 1.15rem;
    font-weight: 900;
}

.compact-card p,
.steps-list p {
    margin: 0;
    color: var(--muted);
}

.audience-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-link-card {
    min-height: 150px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.related-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(21, 32, 51, 0.1);
}

.compact-link-card span,
.related-list span {
    display: block;
    color: var(--ink);
    font-weight: 900;
}

.compact-link-card small,
.related-list small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.voice-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.voice-powered {
    margin: 18px 0 0;
    color: var(--line-dark);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92rem;
    font-weight: 800;
}

.voice-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 36px rgba(21, 32, 51, 0.08);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.voice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 185, 0, 0.32);
    box-shadow: 0 18px 42px rgba(21, 32, 51, 0.12);
}

.voice-card-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e9f7ef;
    color: var(--line-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.voice-card strong {
    display: block;
    margin-top: 16px;
    color: var(--ink);
    font-size: 1.58rem;
    line-height: 1.22;
    font-weight: 900;
}

.voice-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
}

.voice-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.voice-feature-list li {
    padding: 11px 12px;
    border-radius: 8px;
    background: #f7fafc;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 800;
}

.voice-card-cta {
    display: inline-flex;
    margin-top: 22px;
    color: var(--blue);
    font-weight: 900;
}

.workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: start;
}

.steps-list {
    display: grid;
    gap: 14px;
}

.steps-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--border);
}

.steps-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.steps-list strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e9f7ef;
    color: var(--line-dark);
}

.steps-list h3 {
    margin-top: 0;
}

.workflow-actions {
    display: grid;
    grid-template-columns: minmax(180px, 0.38fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.plan-link {
    display: inline-flex;
    justify-content: center;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.plan-link:hover {
    text-decoration: underline;
}

.demo-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.96fr) minmax(0, 0.58fr);
    gap: 34px;
    align-items: center;
    margin-top: 26px;
}

.demo-phone-stage {
    min-height: 740px;
    padding: 56px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 24px 60px rgba(50, 45, 124, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-demo-phone {
    width: min(100%, 420px);
    height: 680px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8f4f8;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 45px 45px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.24);
    display: flex;
    flex-direction: column;
}

.line-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
    padding: 16px 20px;
    border-bottom: 1px solid #dfe7ef;
    background: #fff;
    color: #333;
}

.line-demo-header-left,
.line-demo-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.line-demo-header-left strong {
    font-size: 1.24rem;
    font-weight: 900;
}

.line-demo-header-icons {
    color: #555;
    font-size: 1.55rem;
}

.line-demo-messages {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 34px;
}

.line-msg-row {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(14px);
    animation: lineMessageIn 0.38s ease forwards;
}

.line-msg-row.self {
    flex-direction: row-reverse;
}

.line-msg-row.self .line-avatar {
    display: none;
}

.line-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 1.3rem;
    overflow: hidden;
}

.line-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line-msg-content {
    max-width: 78%;
}

.line-msg-row.self .line-msg-content {
    max-width: 82%;
}

.line-sender {
    margin: 0 0 4px 4px;
    color: #666;
    font-size: 0.86rem;
    font-weight: 900;
}

.line-msg-row.self .line-sender {
    display: none;
}

.line-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff;
    color: #333;
    font-size: 0.98rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

.line-msg-row.self .line-bubble {
    border-bottom-right-radius: 4px;
    background: #dcf8c6;
}

.line-msg-row.other .line-bubble,
.line-msg-row.bot .line-bubble {
    border-bottom-left-radius: 4px;
}

.line-original {
    color: #333;
}

.line-translation {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: #666;
}

.line-translation:first-of-type {
    padding-top: 9px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.line-flag {
    flex: 0 0 auto;
}

.line-time {
    margin-top: 4px;
    color: #8a8f96;
    font-size: 0.82rem;
}

.line-msg-row.self .line-time {
    text-align: right;
    padding-right: 4px;
}

.demo-context-panel {
    padding: 0;
}

.demo-context-panel h3 {
    margin: 8px 0 10px;
    color: var(--ink);
    font-size: 1.7rem;
    line-height: 1.22;
    font-weight: 900;
}

.demo-context-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.demo-scene-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.demo-scene {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.demo-scene:hover,
.demo-scene.active {
    border-color: rgba(6, 199, 85, 0.45);
    box-shadow: 0 8px 18px rgba(21, 32, 51, 0.08);
    transform: translateY(-1px);
}

.demo-scene span {
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 900;
}

.demo-scene strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.demo-scene small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

@keyframes lineMessageIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-layout,
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--muted);
}

.final-cta {
    padding: 70px 0;
    background: #122033;
    color: #fff;
    text-align: center;
}

.final-cta p {
    max-width: 640px;
    margin: 12px auto 0;
    color: #dbe7f6;
}

.compact-footer {
    padding: 30px 20px 38px;
    background: #0c1422;
    color: #cbd5e1;
    text-align: center;
}

.compact-footer address {
    margin: 0 0 12px;
    font-style: normal;
}

.compact-footer p {
    margin: 8px 0;
}

.compact-footer a {
    color: #e6f0ff;
}

@media (max-width: 980px) {
    .compact-hero h1 {
        font-size: 3rem;
    }

    .usage-proof-inner,
    .authority-heading,
    .workflow-layout,
    .demo-showcase,
    .voice-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .authority-list {
        grid-template-columns: 1fr;
    }

    .demo-phone-stage {
        min-height: 660px;
    }

    .usage-proof-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .clean-nav {
        top: 10px;
        left: 10px;
        right: 72px;
        gap: 12px;
        padding: 9px 10px;
        overflow: hidden;
    }

    .clean-nav div {
        gap: 10px;
        min-width: 0;
        overflow-x: auto;
        white-space: nowrap;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .current-lang {
        display: none;
    }

    .compact-hero {
        height: auto;
        min-height: 560px;
    }

    .compact-hero-copy {
        width: calc(100% - 28px);
        max-width: 1120px;
        padding: 86px 0 38px;
    }

    .compact-hero h1 {
        font-size: 2rem;
        line-height: 1.14;
        white-space: pre-line;
    }

    .hero-lead {
        max-width: 330px;
        font-size: 1.04rem;
    }

    .hero-note {
        max-width: 330px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .workflow-actions {
        grid-template-columns: 1fr;
    }

    .compact-container {
        width: calc(100% - 28px);
        max-width: 1120px;
    }

    .compact-section,
    .compact-section-tight {
        padding: 46px 0;
    }

    .section-heading h2,
    .workflow-layout h2,
    .voice-layout h2,
    .faq-layout h2,
    .final-cta h2 {
        font-size: 1.75rem;
    }

    .voice-card {
        padding: 18px;
    }

    .voice-card strong {
        font-size: 1.3rem;
    }

    .voice-feature-list {
        grid-template-columns: 1fr;
    }

    .demo-phone-stage {
        min-height: 520px;
        padding: 28px 14px;
    }

    .line-demo-phone {
        height: 520px;
        border-radius: 18px;
    }

    .line-demo-header {
        min-height: 58px;
        padding: 13px 16px;
    }

    .line-demo-header-left strong {
        font-size: 1.05rem;
    }

    .line-demo-messages {
        gap: 10px;
        padding: 18px 14px 28px;
    }

    .line-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 1.05rem;
    }

    .line-bubble {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .demo-context-panel h3 {
        font-size: 1.35rem;
    }
}
