:root {
    --text: #222a32;
    --muted: #637083;
    --line: #e4e8ed;
    --panel: #ffffff;
    --soft: #f4f6f8;
    --blue: #2c83d6;
    --teal: #22b8c8;
    --green: #16c765;
    --orange: #f7a928;
    --red: #e94b42;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background: #eef3f8;
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.site-header,
.site-footer {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-weight: 800;
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a {
    text-decoration: none;
}

.site-footer {
    padding: 28px 0 36px;
    color: var(--muted);
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: #2082c7;
    border-color: #2082c7;
}

.button.secondary {
    color: var(--text);
    background: #fff;
}

.home-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 40px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: start;
}

.home-copy {
    padding: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #2082c7;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-copy h1,
.message-page h1,
.cms-content h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.08;
}

.home-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.mini-card img,
.mini-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.mini-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    background: #2082c7;
    font-weight: 800;
}

.mini-card strong,
.mini-card small {
    display: block;
    overflow-wrap: anywhere;
}

.mini-card small {
    color: var(--muted);
}

.message-page,
.cms-content {
    width: min(860px, calc(100% - 32px));
    margin: 48px auto;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cms-body {
    color: #344050;
    overflow-wrap: anywhere;
}

.ecard-page {
    background: #f3f5f5;
}

.ecard-page .site-header,
.ecard-page .site-footer {
    display: none;
}

.ecard-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
}

.ecard {
    width: min(100%, 420px);
    min-height: 100vh;
    background: #fff;
    overflow: hidden;
}

.card-banner {
    height: 176px;
    background-position: center;
    background-size: cover;
}

.card-banner-placeholder {
    position: relative;
    background:
        linear-gradient(110deg, #1176b7 0 29%, #a9dcd3 29% 72%, #a4cf4f 72% 100%);
}

.card-banner-placeholder::before {
    content: "";
    position: absolute;
    inset: 28px 28px 34px 64px;
    border: 10px solid rgba(255, 255, 255, 0.55);
    transform: rotate(-3deg);
}

.card-banner-placeholder::after {
    content: "EC";
    position: absolute;
    right: 54px;
    top: 54px;
    color: #1878be;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.avatar-wrap {
    height: 92px;
    display: flex;
    align-items: flex-start;
    padding-left: 26px;
    margin-top: -28px;
}

.avatar {
    width: 128px;
    height: 128px;
    border: 8px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #e9eef3;
    box-shadow: 0 14px 28px rgba(30, 45, 60, 0.18);
}

.avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: #2082c7;
    font-size: 3rem;
    font-weight: 800;
}

.info-card {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 34px 30px 28px;
    background: #f6f7f7;
    border: 1px solid #e8ecef;
    border-radius: 22px;
    box-shadow: 0 28px 34px rgba(30, 40, 48, 0.15);
}

.info-card h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.name-line {
    width: 82px;
    height: 5px;
    margin: 14px 0 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #344e68 0 45%, var(--teal) 45% 100%);
}

.info-list {
    display: grid;
    gap: 17px;
}

.info-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #314053;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    color: #6d7f84;
    padding-top: 2px;
}

.info-row.person .info-icon,
.info-row.mobile .info-icon {
    color: #2f99df;
}

.info-row.whatsapp .info-icon,
.info-row.website .info-icon {
    color: #10be73;
}

.info-row.email .info-icon {
    color: #f08320;
}

.info-row.address .info-icon {
    color: var(--red);
}

.quick-actions {
    width: min(240px, calc(100% - 84px));
    margin: 52px auto 28px;
    display: grid;
    grid-template-columns: repeat(3, 70px);
    justify-content: center;
    gap: 12px;
}

.quick-button {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(27, 42, 56, 0.13);
}

.quick-button .icon {
    width: 32px;
    height: 32px;
}

.quick-button.contact {
    background: #6061d9;
}

.quick-button.call {
    background: #9ccc6b;
}

.quick-button.email {
    background: var(--orange);
}

.quick-button.whatsapp {
    background: #00cf57;
}

.quick-button.website {
    background: #79c9dd;
}

.intro-block {
    width: calc(100% - 40px);
    margin: 0 auto 54px;
    color: #263242;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .site-header {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .home-shell {
        grid-template-columns: 1fr;
        margin: 16px auto 32px;
    }

    .home-copy,
    .message-page,
    .cms-content {
        padding: 24px;
    }
}

@media (max-width: 420px) {
    .card-banner {
        height: 174px;
    }

    .info-card {
        width: calc(100% - 40px);
        padding: 32px 30px 26px;
    }

    .quick-actions {
        margin-top: 50px;
    }
}
