/* ChipscatStudio — 2026-10-22 重練版（Apple 風：白底、大留白、單一黑色重點） */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --line: #d2d2d7;
    --link: #0066cc;
    --black: #1d1d1f;
    --radius: 18px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro TC", "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", "Microsoft JhengHei", Arial, sans-serif;
    --max: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand span { font-weight: 400; color: var(--text-2); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
    color: #fff;
    background: var(--black);
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 500;
}
.nav-links .nav-cta:hover { color: #fff; background: #000; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer;
    position: relative;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
    content: ""; display: block; position: absolute;
    left: 10px; width: 20px; height: 1.5px; background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle i { top: 15px; }
.nav-toggle i::before { left: 0; top: 7px; }
.nav-toggle i::after { left: 0; top: 14px; }
.nav.open .nav-toggle i { background: transparent; }
.nav.open .nav-toggle i::before { transform: translateY(-7px) rotate(45deg); }
.nav.open .nav-toggle i::after { transform: translateY(-14px) rotate(-45deg); }

/* ---------- 共用 ---------- */
section { padding: 120px 0; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }

.h-xl { font-size: clamp(40px, 7vw, 72px); }
.h-lg { font-size: clamp(32px, 5vw, 48px); }
.h-md { font-size: clamp(22px, 3vw, 28px); }

.lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); line-height: 1.5; font-weight: 400; }
.muted { color: var(--text-2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--black);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.link { color: var(--link); font-size: 17px; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

.center { text-align: center; }

.rev { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.rev.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; text-align: center; }
.hero .lead { max-width: 640px; margin: 20px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; margin-top: 36px; }
.hero h1 { max-width: 900px; margin: 0 auto; }

/* 示意視窗（灰階） */
.shot {
    margin: 72px auto 0;
    max-width: 920px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.shot-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2d2d7; display: block; }
.shot-url { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.shot-body { padding: 56px 48px 48px; }
.shot-nav { display: flex; align-items: center; gap: 22px; margin-bottom: 56px; }
.shot-nav b { width: 72px; height: 12px; border-radius: 6px; background: var(--text); display: block; }
.shot-nav i { width: 36px; height: 8px; border-radius: 4px; background: var(--line); display: block; }
.shot-nav i:last-child { margin-left: auto; width: 64px; height: 22px; border-radius: 11px; background: var(--text); }
.shot-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.shot-copy h4 { font-size: clamp(20px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; margin-bottom: 14px; }
.shot-copy p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 22px; max-width: 320px; }
.shot-copy em { display: inline-block; width: 110px; height: 30px; border-radius: 15px; background: var(--text); }
.shot-art { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, #e8e8ed, #f5f5f7); position: relative; overflow: hidden; }
.shot-art::before { content: ""; position: absolute; left: 16%; right: 16%; top: 22%; bottom: 22%; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
.shot-art::after { content: ""; position: absolute; left: 26%; width: 48%; top: 36%; height: 8px; border-radius: 4px; background: var(--line); box-shadow: 0 18px 0 var(--line), 0 36px 0 #e8e8ed; }
.shot-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.shot-cards div { height: 72px; border-radius: 10px; background: var(--bg-alt); position: relative; }
.shot-cards div::before { content: ""; position: absolute; left: 14px; top: 16px; width: 40%; height: 8px; border-radius: 4px; background: var(--line); }
.shot-cards div::after { content: ""; position: absolute; left: 14px; top: 34px; width: 65%; height: 6px; border-radius: 3px; background: #e8e8ed; }

/* ---------- 服務 ---------- */
.services { background: var(--bg-alt); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.col { border-top: 1px solid var(--line); padding-top: 22px; }
.col h3 { font-size: 21px; margin-bottom: 8px; }
.col p { color: var(--text-2); font-size: 16px; }

/* ---------- 宣言 ---------- */
.statement .wrap { max-width: 820px; }
.statement p { margin-top: 22px; }

/* ---------- 流程 ---------- */
.steps { background: var(--bg-alt); }
.step-list { list-style: none; margin-top: 56px; max-width: 760px; }
.step-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step-list li:last-child { border-bottom: 1px solid var(--line); }
.step-list .num { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 5px; letter-spacing: 0.04em; }
.step-list h3 { font-size: 21px; margin-bottom: 6px; }
.step-list p { color: var(--text-2); font-size: 16px; }
.steps-note { margin-top: 28px; color: var(--text-2); font-size: 15px; }

/* ---------- 作品 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.work-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.work-card figure { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8ed; }
.work-card img, .work-card video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.work-card:hover img, .work-card:hover video { transform: scale(1.03); }
.work-card figcaption { padding: 18px 20px 22px; }
.work-card h3 { font-size: 19px; margin-bottom: 4px; }
.work-card p { color: var(--text-2); font-size: 15px; }
.work-card .link { font-size: 15px; display: inline-block; margin-top: 10px; }

/* 作品內頁 */
.page-head { padding: 150px 0 40px; text-align: center; }
.page-head .lead { max-width: 640px; margin: 16px auto 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 100px; }
.gallery figure { border-radius: 14px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.gallery.tall figure { aspect-ratio: 9 / 16; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery figcaption { padding: 14px 16px 18px; }
.gallery figcaption h3 { font-size: 17px; margin-bottom: 4px; }
.gallery figcaption p { font-size: 14px; color: var(--text-2); }
.gallery.cases { grid-template-columns: repeat(2, 1fr); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; font: inherit; color: var(--text); text-align: left; padding: 22px 44px 22px 0; cursor: pointer; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 0 24px; color: var(--text-2); font-size: 17px; max-width: 680px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CTA + 表單 ---------- */
.cta { background: var(--bg-alt); text-align: center; }
.cta .lead { max-width: 560px; margin: 16px auto 0; }
.form-card {
    margin: 48px auto 0;
    max-width: 800px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.form-card iframe { display: block; width: 100%; border: 0; height: 1500px; }
.cta-foot { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.cta-note { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.cta .lead { max-width: 620px; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 60px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 20px; list-style: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- 響應式 ---------- */
@media (max-width: 860px) {
    section { padding: 88px 0; }
    .hero { padding: 120px 0 64px; }
    .cols, .work-grid, .gallery, .shot-cards { grid-template-columns: 1fr; }
    .gallery.cases { grid-template-columns: 1fr; }
    .gallery.tall { grid-template-columns: repeat(2, 1fr); }
    .shot-body { padding: 32px 24px; }
    .shot-grid { grid-template-columns: 1fr; gap: 28px; }
    .shot-nav { margin-bottom: 32px; }
    .shot-cards { display: none; }
    .step-list li { grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; }
    .form-card iframe { height: 1600px; }

    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 52px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity 0.25s, transform 0.25s;
    }
    .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
    .nav-links .nav-cta { display: inline-block; margin-top: 14px; padding: 10px 20px; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rev { opacity: 1; transform: none; transition: none; }
    .btn, .work-card img, .work-card video { transition: none; }
}

/* ---------- 手機：表單改成大按鈕（內嵌表單在手機會框內捲動，不順） ---------- */
.form-mobile { display: none; margin-top: 32px; }
.btn-wide { width: 100%; max-width: 360px; padding: 16px 28px; font-size: 18px; }

@media (max-width: 860px) {
    .form-mobile { display: block; }
    .form-card, .form-desktop { display: none; }
    .cta { padding-bottom: 72px; }
    .cta .lead { font-size: 18px; }
    .cta-note { font-size: 14px; }

    /* 手機排版細修 */
    .wrap { padding: 0 20px; }
    .hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.15; }
    .hero .lead { font-size: 18px; }
    .hero-actions { flex-direction: column; gap: 18px; }
    .hero-actions .btn { width: 100%; max-width: 360px; padding: 16px 28px; font-size: 18px; }
    .shot { margin-top: 48px; border-radius: 12px; }
    .shot-copy h4 { font-size: 22px; }
    .h-lg { font-size: clamp(28px, 8vw, 36px); }
    .cols { gap: 28px; margin-top: 36px; }
    .col p, .step-list p, .work-card p { font-size: 16px; }
    .step-list { margin-top: 36px; }
    .step-list h3 { font-size: 19px; }
    .work-grid { margin-top: 36px; gap: 18px; }
    .work-card figure { aspect-ratio: 16 / 10; }
    .faq-q { font-size: 17px; padding: 20px 40px 20px 0; }
    .faq-a p { font-size: 16px; }
    .page-head { padding: 120px 0 24px; }
    .gallery { gap: 14px; padding-bottom: 72px; }
    footer { padding: 36px 0 48px; }
    .foot { flex-direction: column; align-items: flex-start; gap: 14px; }
    .foot-links { flex-wrap: wrap; gap: 16px; }
    .foot-links a { padding: 6px 0; display: inline-block; }
}

@media (max-width: 400px) {
    .gallery.tall { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* 手機點擊區域放大 */
@media (max-width: 860px) {
    .brand { padding: 10px 0; }
    .link { display: inline-block; padding: 10px 0; }
    .work-card .link { padding: 6px 0; }
    .foot-links a { padding: 10px 0; }
}

@media (max-width: 860px) {
    .nav-links { background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
}

/* ---------- 發光效果（2026-10-22）：主按鈕光暈、表單框流光邊 ---------- */
.btn {
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: btnGlow 3.2s ease-in-out infinite;
}

.btn:hover {
    animation: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(0, 102, 204, 0.14), 0 0 32px rgba(0, 102, 204, 0.35);
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(0, 102, 204, 0), 0 0 22px rgba(0, 102, 204, 0.35); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 6px rgba(0, 102, 204, 0.14), 0 0 44px rgba(0, 102, 204, 0.6); }
}

.nav-links .nav-cta { animation: none; box-shadow: none; }
.nav-links .nav-cta:hover { box-shadow: 0 0 18px rgba(0, 102, 204, 0.35); animation: none; }

@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.form-card {
    position: relative;
    z-index: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
    overflow: visible;
}

.form-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: conic-gradient(from var(--glow-angle, 0deg), #0066cc, #7c3aed, #0ea5e9, #0066cc);
    animation: glowSpin 7s linear infinite;
    z-index: -1;
}

.form-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: conic-gradient(from var(--glow-angle, 0deg), #0066cc, #7c3aed, #0ea5e9, #0066cc);
    animation: glowSpin 7s linear infinite;
    filter: blur(26px);
    opacity: 0.45;
    z-index: -2;
}

.form-card iframe {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    background: #fff;
}

@keyframes glowSpin {
    to { --glow-angle: 360deg; }
}

.form-mobile .btn-wide {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 30px rgba(0, 102, 204, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .btn { animation: none; }
    .form-card::before, .form-card::after { animation: none; }
}

/* ---------- CTA 加強（2026-10-22） ---------- */
.btn-lg { font-size: 19px; padding: 17px 36px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--text-2); }
.form-card { opacity: 1; transform: none; }
@media (max-width: 860px) {
    .btn-lg { font-size: 18px; padding: 16px 28px; width: 100%; max-width: 360px; }
    .hero-note { font-size: 14px; padding: 0 8px; }
}

/* ---------- SEO 文字段落（2026-10-22） ---------- */
.services-note { max-width: 760px; margin: 40px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.8; }
.page-head .intro { max-width: 680px; margin: 14px auto 0; color: var(--text-2); font-size: 16px; line-height: 1.8; }
