:root {
    --red: #b72a1c;
    --gold: #c8872d;
    --ink: #2c2018;
    --muted: #766c64;
    --line: #eaded2;
    --paper: #fffaf4;
    --white: #ffffff;
    --green: #2f8f6a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 56px;
    background: rgba(255, 250, 244, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.brand, .admin-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    font-weight: 800;
}
.brand strong { display: block; color: var(--red); font-size: 24px; }
.brand small { display: block; color: var(--gold); font-size: 11px; letter-spacing: 2px; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.site-header nav a:last-child {
    padding: 10px 18px;
    color: #fff;
    background: var(--red);
    border-radius: 6px;
}

.flash {
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff3d8;
    border: 1px solid #f0c97a;
}
.flash.error { background: #fff0ee; border-color: #e6a098; }
.flash.success { background: #eaf8ef; border-color: #9ed5ae; }

.hero {
    min-height: 560px;
    padding: 88px 7vw 44px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(25, 12, 6, .86), rgba(67, 25, 12, .58), rgba(25, 12, 6, .2)),
        url("/public/assets/img/platform-reference.png") center left / cover;
}
.hero-copy { max-width: 760px; }
.hero-copy p { margin: 0 0 8px; font-size: 28px; }
.hero h1 { margin: 0 0 12px; color: #ffd979; font-size: 52px; font-weight: 800; }
.hero-copy span { font-size: 22px; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 54px;
}
.hero-action {
    position: relative;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    color: var(--gold);
    background: rgba(255,255,255,.94);
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(0,0,0,.22);
}
.hero-action em, .badge {
    position: absolute;
    top: -8px;
    right: -5px;
    padding: 4px 9px;
    color: #fff;
    background: #e9362b;
    border-radius: 99px;
    font-style: normal;
    font-size: 12px;
}

.section, .split-section, .page-title, .form-shell, .summary-box {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 24px;
}
.section-heading { text-align: center; margin-bottom: 32px; }
.section-heading h2, .page-title h1, .split-section h2 { margin: 0; font-size: 34px; }
.section-heading p, .page-title p { color: var(--muted); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}
.service-card {
    position: relative;
    padding: 0 0 20px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 30px rgba(80, 45, 22, .08);
}
.service-thumb, .god-thumb {
    height: 138px;
    background:
        linear-gradient(rgba(72, 24, 10, .08), rgba(72, 24, 10, .22)),
        url("/public/assets/img/platform-reference.png") center / cover;
}
.service-card h2, .service-card h3 { margin: 18px 16px 6px; font-size: 22px; }
.service-card p { min-height: 52px; margin: 0 16px 14px; color: var(--muted); font-size: 14px; }
.service-card strong { display: block; margin-bottom: 16px; color: var(--red); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    color: var(--red);
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: #fff8ed;
    font-weight: 700;
}
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.news-item {
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.news-item time { color: var(--muted); font-size: 13px; }
.news-item h2, .news-item h3 { margin: 6px 0; }
.god-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.god-grid article {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.god-grid h2, .god-grid h3, .god-grid p { margin-left: 16px; margin-right: 16px; }

.page-title { text-align: center; }
.page-title.success h1 { color: var(--green); }
.order-form, .summary-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(80,45,22,.08);
}
.order-form { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 700; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}
.checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.summary-box dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    margin: 0 0 24px;
}
.summary-box dt { color: var(--muted); }
.site-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    color: #fff;
    background: #271810;
}

@media (max-width: 980px) {
    .site-header { padding: 12px 20px; align-items: flex-start; flex-direction: column; }
    .site-header nav { flex-wrap: wrap; gap: 14px; }
    .hero { min-height: auto; padding-top: 58px; }
    .hero h1 { font-size: 38px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-section, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .service-grid, .god-grid { grid-template-columns: 1fr; }
    .hero-action { width: 102px; height: 102px; }
    .checkout-bar, .site-footer { align-items: stretch; flex-direction: column; }
}
