:root {
    --ink: #2e2926;
    --muted: #ad7a39;
    --gold: #dca343;
    --gold-deep: #c88c2c;
    --cream: #fffdf9;
    --line: rgba(212, 162, 79, .26);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    background:
        radial-gradient(circle at 18% 13%, rgba(255,255,255,.84), transparent 27%),
        radial-gradient(circle at 81% 80%, rgba(243, 209, 220, .48), transparent 32%),
        linear-gradient(135deg, #eee9df, #f5eee7 52%, #e7dfd2);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(160, 128, 91, .1) .7px, transparent .7px);
    background-size: 17px 17px;
    content: "";
    pointer-events: none;
}

button { font: inherit; } html,body{overflow-x:hidden}img{max-width:100%}input,textarea,select,button{max-width:100%}

.phone-shell {
    width: min(calc(100% - 32px), 390px);
    min-height: 0;
    margin: 28px auto;
    padding: 20px 14px 27px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 30px;
    background: rgba(255, 251, 243, .42);
    box-shadow: 0 24px 52px rgba(107, 79, 52, .18), inset 0 0 0 1px rgba(213, 182, 139, .12);
    backdrop-filter: blur(14px);
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 7px 13px;
    animation: rise .65s both;
}

.brand-avatar {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: linear-gradient(145deg, #e9d4eb, #bca2bd);
    box-shadow: 0 5px 13px rgba(125,90,83,.18);
    color: #735c73;
    font-size: 19px;
    font-weight: 800;
}

.brand-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.brand-bar strong, .brand-bar small { display: block; }
.brand-bar strong { font-size: 16px; letter-spacing: .08em; }
.brand-bar small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .24em; }

.hero-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 18px;
    background: var(--cream);
    box-shadow: 0 15px 32px rgba(129,94,55,.12);
    animation: rise .75s .08s both;
}

.hero-card::before {
    position: absolute;
    right: -58px;
    bottom: -63px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(219,167,89,.18);
    border-radius: 50%;
    content: "";
}

.hero-copy { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; padding: 20px 18px 34px; background: linear-gradient(180deg, rgba(255,253,249,.94), rgba(255,253,249,.72) 65%, transparent); }
.eyebrow { margin: 0 0 9px; color: #be8b48; font-size: 8px; font-weight: 800; letter-spacing: .24em; }
h1 { margin: 0; font-size: 29px; letter-spacing: .05em; }
.gold-line { display: block; width: 46px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-description { margin: 12px 0 0; color: #a3896c; font-size: 11px; letter-spacing: .08em; }

.hero-art { position: absolute; right: -6px; bottom: 0; width: 100%; height: 360px; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; opacity: .94; }

.quick-entry {
    position: absolute;
    top: 20px;
    right: 18px;
    z-index: 3;
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 1px solid rgba(219,174,100,.27);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    color: var(--gold-deep);
    box-shadow: 0 6px 14px rgba(133,99,58,.1);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.quick-entry:hover, .quick-entry:focus-visible { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(133,99,58,.16); }
.quick-entry svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.action-panel {
    display: grid;
    gap: 13px;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 17px;
    background: rgba(255,255,255,.64);
    box-shadow: 0 12px 25px rgba(129,94,55,.08);
    backdrop-filter: blur(13px);
    animation: rise .75s .15s both;
}

.action-button, .download-button {
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 15px;
    color: #825d35;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.action-button:hover, .action-button:focus-visible, .download-button:hover, .download-button:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(148,105,51,.14); }
.action-button--primary { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #f2d18a, #d69b37); box-shadow: 0 7px 14px rgba(195,137,39,.2); color: #5c3d1d; text-decoration: none; }
.action-button--primary span { position: relative; z-index: 1; font-size: 15px; letter-spacing: .45em; }
.action-button--primary i { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.34) 49%, transparent 63%); transform: translateX(-120%); }
.action-button--primary:hover i { animation: sheen 1.1s ease; }
.action-button--secondary, .download-button { background: rgba(255,255,255,.72); font-size: 14px; }
.action-button--secondary { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.download-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 51px; font-size: 12px; font-weight: 700; }
.download-button svg { width: 15px; height: 15px; fill: #a77b40; }
.download-button em { color: #a77b40; font-size: 15px; font-style: normal; }
.footer-note { margin: 18px 0 0; color: rgba(126,101,75,.66); text-align: center; font-size: 9px; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: rgba(47,40,34,.9); color: #fffaf2; font-size: 12px; opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast--visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { transform: translateX(120%); } }
@media (min-width: 600px) { .phone-shell { margin-top: 50px; margin-bottom: 50px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
