/* ===== CSS 變數 — Apple Light Style ===== */
:root {
    --primary:      #0071e3;
    --primary-dark: #0064cc;
    --accent:       #ff6b00;
    --text:         #1d1d1f;
    --text-light:   #6e6e73;
    --bg:           #ffffff;
    --bg-gray:      #f5f5f7;
    --border:       rgba(0,0,0,.08);
    --shadow:       0 2px 12px rgba(0,0,0,.06);
    --shadow-md:    0 8px 32px rgba(0,0,0,.10);
    --radius:       18px;
    --radius-sm:    10px;
    --radius-pill:  980px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

/* ===== 版面容器 ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== 導覽列 ===== */
header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 16px 0;
}
nav { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo {
    font-size: .9375rem; font-weight: 700;
    color: var(--text); letter-spacing: -.02em;
    display: flex; align-items: center; gap: 8px;
}
.logo img { height: 68px; }
.logo-name { font-family: 'Noto Sans TC', sans-serif; font-size: 1.65rem; font-weight: 700; letter-spacing: .04em; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
    padding: 5px 14px; border-radius: var(--radius-pill);
    color: var(--text-light); font-size: .8125rem; font-weight: 400;
    transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
    background: var(--primary) !important;
    color: #fff !important; font-weight: 500 !important;
    margin-left: 4px;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== 按鈕 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-pill);
    font-size: .9375rem; font-weight: 500; cursor: pointer;
    border: 1.5px solid transparent; transition: all .2s;
    text-decoration: none;
}
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-outline-dark { border-color: var(--text); color: var(--text); }
.btn-outline-dark:hover { background: var(--text); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-blue:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-orange { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-orange:hover { background: #e85f00; border-color: #e85f00; }

/* ===== Hero — 淺灰底 ===== */
.hero {
    background: var(--bg-gray);
    color: var(--text);
    padding: 100px 0 90px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .8125rem; font-weight: 600; letter-spacing: .06em;
    color: var(--primary); text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-weight: 700; line-height: 1.08;
    letter-spacing: -.04em; margin-bottom: 18px; color: var(--text);
}
.hero p {
    font-size: clamp(.9375rem, 1.8vw, 1.125rem);
    color: var(--text-light); max-width: 500px;
    margin: 0 auto 36px; line-height: 1.65;
}

/* ===== Section 通用 ===== */
section { padding: 96px 0; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title .eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-title h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
    margin-bottom: 10px;
}
.section-title p { color: var(--text-light); font-size: .9375rem; max-width: 440px; margin: 0 auto; }
.section-gray { background: var(--bg-gray); }

/* ===== 特色卡片 ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform .25s, box-shadow .25s;
}
/* hero 後面的 section 是白底，卡片改白色會消失，改用淺灰 */
section:not(.section-gray) .feature-card { background: var(--bg-gray); }
section.section-gray .feature-card { background: #fff; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    font-size: 1.75rem; margin-bottom: 18px;
    width: 52px; height: 52px;
    background: rgba(0,113,227,.08); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.02em; }
.feature-card p  { font-size: .875rem; color: var(--text-light); line-height: 1.65; }

/* ===== 服務項目 ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-img {
    height: 160px;
    background: #dbeafe;
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.service-img.purple { background: #ede9fe; }
.service-img.orange { background: #ffedd5; }
.service-body { padding: 24px 28px 28px; }
.service-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.02em; }
.service-body p  { font-size: .875rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.65; }

/* ===== 頁面標題區 (quote / repair) ===== */
.page-hero {
    background: var(--bg-gray);
    padding: 64px 0 56px; text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700; letter-spacing: -.04em; margin-bottom: 10px;
}
.page-hero p { color: var(--text-light); font-size: .9375rem; }

/* ===== 表單 ===== */
.form-wrap {
    max-width: 720px; margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: .8125rem; font-weight: 600;
    margin-bottom: 7px; color: var(--text);
}
.form-group label .req { color: var(--primary); margin-left: 2px; }
.form-control {
    width: 100%; padding: 11px 16px;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: var(--radius-sm);
    font-size: .9375rem; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    color: var(--text); background: var(--bg);
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,113,227,.12);
}
.form-control::placeholder { color: #aeaeb2; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.form-submit { text-align: center; margin-top: 12px; }
.form-submit .btn { padding: 14px 52px; font-size: 1rem; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .9rem; }
.alert-success { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; }

/* ===== CTA Section — 深色 ===== */
.section-cta {
    background: rgb(210, 212, 218); color: #f5f5f7; text-align: center;
}
.section-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700; letter-spacing: -.04em; margin-bottom: 14px;
}
.section-cta p { color: rgba(245,245,247,.6); margin-bottom: 32px; font-size: .9375rem; }

/* ===== 狀態標籤 ===== */
.badge { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; }
.badge-pending    { background: #fff7ed; color: #9a3412; }
.badge-processing { background: #eff6ff; color: #1e40af; }
.badge-replied    { background: #f0fdf4; color: #166534; }
.badge-completed  { background: #f0fdf4; color: #166534; }
.badge-closed     { background: #f5f5f7; color: #6e6e73; }
.badge-repairing  { background: #f5f3ff; color: #5b21b6; }
.badge-returned   { background: #f5f5f7; color: #6e6e73; }
.badge-confirmed  { background: #eff6ff; color: #1e40af; }

/* ===== 頁尾 ===== */
footer { background: var(--bg-gray); color: #86868b; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #f5f5f7; font-size: .9375rem; font-weight: 600; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: .875rem; color: #86868b; display: block; margin-bottom: 8px; line-height: 1.55; }
.footer-col a:hover { color: #f5f5f7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; text-align: center; font-size: .8125rem; color: #515154; }

/* ===== 響應式 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 52px; left: 0; right: 0;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px; gap: 4px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 72px 0 64px; }
    .form-wrap { padding: 28px 20px; }
    section { padding: 72px 0; }
}
