/* ==========================================
   AnnAI 完整版型：工作室風格 (theme-studio)

   定位：完整一頁式品牌網站
   桌機 1080px；手機單欄；只套用 .theme-studio
   ========================================== */

body.theme-studio {
    --st-ink: #1f2522;
    --st-muted: #6f7a74;
    --st-line: #e5e8e3;
    --st-soft: #f5f6f2;
    --st-band: #eef1ea;
    --st-accent: #7f9581;
    --st-accent-2: #c47f67;
    background: #f6f4ef;
    color: var(--st-ink);
}

body.theme-studio .card-container,
body.theme-studio .card-container.is-wide {
    max-width: 1080px !important;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 24px 70px rgba(31, 37, 34, .12) !important;
    overflow: hidden;
}

body.theme-studio .section-title {
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--st-ink);
}
body.theme-studio .section-header { margin-bottom: 24px; }

/* ── 頁首 ───────────────────────────────────── */
body.theme-studio .mag-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 48px;
    background: #fff;
    border-bottom: 1px solid var(--st-line);
}
body.theme-studio .mag-header[hidden] { display: none !important; }
body.theme-studio .mag-brand {
    color: var(--st-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
}
body.theme-studio .mag-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
body.theme-studio .mag-nav::-webkit-scrollbar { display: none; }
body.theme-studio .mag-nav a {
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
body.theme-studio .mag-nav a:hover { color: var(--st-ink); }

/* ── 主視覺：左文右圖 ───────────────────────── */
body.theme-studio .hero-section {
    padding: 0;
    text-align: left;
    background: #fff;
}
body.theme-studio .hero-cover,
body.theme-studio .card-container:not(.is-wide) .hero-cover {
    height: 520px !important;
    border-radius: 0 !important;
}
body.theme-studio .hero-content,
body.theme-studio .card-container:not(.is-wide) .hero-content {
    padding: 56px 56px 48px !important;
}
body.theme-studio .hero-primary { justify-content: flex-start; }
body.theme-studio .avatar-wrapper,
body.theme-studio .card-container:not(.is-wide) .avatar-wrapper {
    width: 92px;
    height: 92px;
    border-width: 4px;
}
body.theme-studio .merchant-name,
body.theme-studio .card-container:not(.is-wide) .merchant-name {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-top: 10px;
}
body.theme-studio .merchant-subtitle,
body.theme-studio .card-container:not(.is-wide) .merchant-subtitle {
    max-width: 100%;
    color: var(--st-muted);
    font-size: 16px;
    line-height: 1.8;
}
body.theme-studio .merchant-tags { justify-content: flex-start; }
body.theme-studio .merchant-tag {
    background: var(--st-soft);
    border: 1px solid var(--st-line);
    color: var(--st-ink);
}

/* ── 區段節奏 ───────────────────────────────── */
body.theme-studio .card-section,
body.theme-studio .card-container:not(.is-wide) .card-section {
    padding: 64px 56px !important;
}
body.theme-studio .card-section + .card-section,
body.theme-studio .card-container:not(.is-wide) .card-section + .card-section {
    padding-top: 64px !important;
}
body.theme-studio [data-section-id="services"],
body.theme-studio [data-section-id="products"] {
    background: var(--st-soft);
}

/* ── 三欄服務 ───────────────────────────────── */
body.theme-studio .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
body.theme-studio .service-card {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 14px;
    padding: 20px;
}
body.theme-studio .service-img,
body.theme-studio .service-img-placeholder {
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px;
}
body.theme-studio .service-name { font-size: 17px; }
body.theme-studio .service-desc { font-size: 14px; color: var(--st-muted); }
body.theme-studio .service-price { color: var(--st-accent-2); }

/* ── 商品與作品集 ───────────────────────────── */
body.theme-studio .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}
body.theme-studio .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
}
body.theme-studio .gallery-item { border-radius: 12px !important; }

/* ── 預約／CTA 帶狀區 ───────────────────────── */
body.theme-studio .cta-section {
    background: var(--st-band);
    padding: 44px 56px !important;
}
body.theme-studio .cta-section .cta-buttons { justify-content: stretch; }
body.theme-studio .cta-section .cta-btn,
body.theme-studio .booking-cta-btn {
    min-height: 50px;
    border-radius: 999px !important;
    font-weight: 700;
}
body.theme-studio .booking-cta-btn {
    background: var(--st-accent-2) !important;
    color: #fff !important;
}

/* ── 頁尾 ───────────────────────────────────── */
body.theme-studio .mag-footer {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    padding: 44px 56px;
    background: #faf9f6;
    border-top: 1px solid var(--st-line);
}
body.theme-studio .mag-footer[hidden] { display: none !important; }
body.theme-studio .mag-footer-title {
    margin-bottom: 12px;
    color: var(--st-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}
body.theme-studio .mag-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--st-muted);
    font-size: 13px;
    line-height: 1.6;
}
body.theme-studio .mag-footer-contact a {
    color: var(--st-muted);
    text-decoration: none;
}
body.theme-studio .mag-footer-brand {
    align-self: center;
    color: var(--st-ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: right;
}
body.theme-studio .card-copyright-footer { background: #faf9f6; color: var(--st-muted); }

/* ── 桌機雙欄主視覺 ─────────────────────────── */
@media (min-width: 761px) {
    body.theme-studio .hero-section {
        display: grid;
        grid-template-columns: 46% 54%;
        align-items: stretch;
    }
    body.theme-studio .hero-content,
    body.theme-studio .card-container:not(.is-wide) .hero-content {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    body.theme-studio .hero-cover,
    body.theme-studio .card-container:not(.is-wide) .hero-cover {
        grid-column: 2;
        grid-row: 1;
        min-height: 520px;
    }
    body.theme-studio .hero-primary { grid-column: 1; }
}

/* ── 手機：單欄、保持可讀 ───────────────────── */
@media (max-width: 760px) {
    body.theme-studio { background: #fff; }
    body.theme-studio .card-container,
    body.theme-studio .card-container.is-wide {
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    body.theme-studio .mag-header {
        padding: 14px 16px;
        gap: 14px;
        align-items: flex-start;
    }
    body.theme-studio .mag-brand { font-size: 15px; }
    body.theme-studio .mag-nav { gap: 16px; padding-bottom: 2px; }
    body.theme-studio .mag-nav a { font-size: 12px; }
    body.theme-studio .hero-cover,
    body.theme-studio .card-container:not(.is-wide) .hero-cover {
        height: 260px !important;
    }
    body.theme-studio .hero-content,
    body.theme-studio .card-container:not(.is-wide) .hero-content {
        padding: 28px 22px 30px !important;
    }
    body.theme-studio .merchant-name,
    body.theme-studio .card-container:not(.is-wide) .merchant-name {
        font-size: 30px;
    }
    body.theme-studio .card-section,
    body.theme-studio .card-container:not(.is-wide) .card-section {
        padding: 36px 22px !important;
    }
    body.theme-studio .services-grid,
    body.theme-studio .products-grid {
        grid-template-columns: 1fr !important;
    }
    body.theme-studio .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    body.theme-studio .cta-section { padding: 32px 22px !important; }
    body.theme-studio .mag-footer {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 22px;
    }
    body.theme-studio .mag-footer-brand { text-align: left; font-size: 20px; }
}
