body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang TC","Noto Sans TC",sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,214,235,.95) 0, rgba(255,214,235,0) 20%),
        radial-gradient(circle at 88% 14%, rgba(255,239,176,.95) 0, rgba(255,239,176,0) 18%),
        radial-gradient(circle at 80% 78%, rgba(196,232,255,.9) 0, rgba(196,232,255,0) 20%),
        linear-gradient(180deg,#fff6fb 0%,#fffaf2 48%,#fdfcff 100%);
    color:#442b38;
    min-height:100vh;
}

.wrap{
    max-width:980px;
    margin:0 auto;
    padding:24px 16px 64px;
}

.card{
    position:relative;
    background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,252,.96));
    border:3px solid #ffd7e6;
    border-radius:30px;
    box-shadow:
        0 18px 40px rgba(255,138,180,.18),
        0 6px 16px rgba(103,58,78,.08);
    padding:24px;
    margin-bottom:22px;
    overflow:hidden;
}

.card:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:10px;
    background:linear-gradient(90deg,#ff8fb1 0%, #ffd86f 35%, #8fd3ff 70%, #caa6ff 100%);
    opacity:.95;
}

.hero{
    background:
        radial-gradient(circle at top right, rgba(255,225,120,.35), transparent 24%),
        radial-gradient(circle at left center, rgba(255,157,197,.22), transparent 22%),
        linear-gradient(135deg,#fffafc 0%,#fff2f7 44%,#fff8ef 100%);
    border:4px solid #ffc4dc;
    border-radius:34px;
    box-shadow:
        0 22px 46px rgba(255,133,177,.22),
        0 8px 18px rgba(0,0,0,.05);
}

.hero:after{
    content:"";
    position:absolute;
    right:18px;
    top:18px;
    width:90px;
    height:90px;
    border-radius:50%;
    background:
        radial-gradient(circle at 30% 30%, #fff 0, #fff 12%, #ffd6e8 13%, #ffd6e8 40%, rgba(255,214,232,0) 70%);
    opacity:.65;
}

.hero-badge{
    display:inline-block;
    padding:10px 16px;
    border-radius:999px;
    background:linear-gradient(90deg,#ff6fa5,#ff9f6b);
    color:#fff;
    font-size:13px;
    font-weight:900;
    letter-spacing:.6px;
    box-shadow:0 10px 20px rgba(255,111,165,.28);
    margin-bottom:14px;
    border:2px solid rgba(255,255,255,.8);
}

h1,h2,h3{
    margin:0 0 14px;
    line-height:1.35;
    letter-spacing:.3px;
}

h1{
    font-size:34px;
    font-weight:900;
    color:#d94d84;
    text-shadow:
        0 2px 0 rgba(255,255,255,.95),
        0 4px 10px rgba(255,143,177,.18);
}

h2{
    font-size:24px;
    font-weight:900;
    color:#7a3859;
    position:relative;
    padding-left:14px;
}

h2:before{
    content:"";
    position:absolute;
    left:0;
    top:4px;
    bottom:4px;
    width:6px;
    border-radius:999px;
    background:linear-gradient(180deg,#ff80aa,#ffd86a);
}

.muted{
    color:#8b7280;
}

.hero-text{
    font-size:16px;
    line-height:1.9;
    max-width:760px;
}

label{
    display:block;
    font-weight:900;
    margin:14px 0 8px;
    color:#6b3650;
    font-size:15px;
}

input[type=text],
input[type=email],
input[type=date],
input[type=number],
input[type=file],
select,
textarea{
    width:100%;
    box-sizing:border-box;
    border:3px solid #ffd8e5;
    border-radius:22px;
    padding:14px 16px;
    font-size:16px;
    background:linear-gradient(180deg,#fff,#fffafc);
    color:#4a2d39;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.75),
        0 3px 8px rgba(255,180,205,.08);
    transition:.18s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=date]:focus,
input[type=number]:focus,
input[type=file]:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#ff8fb6;
    box-shadow:
        0 0 0 5px rgba(255,143,182,.16),
        0 8px 16px rgba(255,143,182,.10);
    background:#fff;
}

textarea{
    min-height:124px;
    resize:vertical;
    line-height:1.7;
}

.row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.col{
    flex:1 1 260px;
}

.btn{
    display:inline-block;
    border:none;
    border-radius:999px;
    padding:14px 24px;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    text-decoration:none;
}

.btn:hover{
    transform:translateY(-2px) scale(1.01);
}

.btn-primary{
    background:linear-gradient(90deg,#ff5f95 0%, #ff9a62 48%, #ffd25e 100%);
    color:#fff;
    box-shadow:
        0 14px 24px rgba(255,111,155,.24),
        0 4px 0 rgba(210,97,136,.55);
    border:2px solid rgba(255,255,255,.75);
}

.btn-primary:active{
    transform:translateY(1px);
    box-shadow:
        0 8px 14px rgba(255,111,155,.18),
        0 2px 0 rgba(210,97,136,.55);
}

.btn-secondary{
    background:linear-gradient(180deg,#ffffff,#fff4f8);
    color:#7a4760;
    border:2px solid #ffd8e8;
    box-shadow:0 8px 16px rgba(255,173,203,.12);
}

.alert{
    padding:16px 18px;
    border-radius:20px;
    margin-bottom:16px;
    font-weight:800;
    border:2px solid transparent;
}

.alert-ok{
    background:linear-gradient(180deg,#effff3,#f8fff9);
    color:#217443;
    border-color:#cbeed7;
    box-shadow:0 8px 16px rgba(102,199,132,.08);
}

.alert-err{
    background:linear-gradient(180deg,#fff1f5,#fff7f8);
    color:#bf2f55;
    border-color:#ffd0dd;
    box-shadow:0 8px 16px rgba(255,121,153,.08);
}

.codebox{
    background:
        linear-gradient(180deg,#fffdfd,#fff7fb);
    border:2px dashed #ffbfd5;
    padding:16px;
    border-radius:22px;
    word-break:break-word;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

img.preview{
    width:100%;
    max-width:480px;
    border-radius:24px;
    display:block;
    margin:14px 0;
    border:4px solid #fff;
    box-shadow:
        0 18px 30px rgba(255,145,185,.20),
        0 8px 16px rgba(0,0,0,.06);
}

.kv div{
    margin:8px 0;
}

.small{
    font-size:13px;
    color:#8e7581;
    line-height:1.75;
}

.statbox{
    text-align:center;
    min-height:100px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:
        linear-gradient(180deg,#fff,#fff8fb);
    border-radius:22px;
}

.statnum{
    font-size:30px;
    font-weight:900;
    color:#ff5c93;
    margin-top:4px;
    text-shadow:0 2px 0 rgba(255,255,255,.85);
}

/* 動漫感：局部舞台框、徽章感 */
.card h2 + .row .codebox,
.card .statbox{
    position:relative;
}

.card h2 + .row .codebox:after,
.card .statbox:after{
    content:"";
    position:absolute;
    right:10px;
    top:10px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:linear-gradient(180deg,#ffe06b,#ff9a60);
    box-shadow:0 0 0 3px rgba(255,255,255,.75);
    opacity:.75;
}

/* 表單更像卡通世界 */
select{
    appearance:none;
    -webkit-appearance:none;
    background-image:
        linear-gradient(45deg, transparent 50%, #ff7aa8 50%),
        linear-gradient(135deg, #ff7aa8 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size:6px 6px, 6px 6px;
    background-repeat:no-repeat;
    padding-right:42px;
}

input[type=file]{
    padding:12px 14px;
    background:
        linear-gradient(180deg,#fff,#fff5f9);
}

/* 手機 */
@media (max-width:640px){
    .wrap{
        padding:16px 12px 40px;
    }
    .card{
        padding:18px;
        border-radius:24px;
    }
    .hero{
        border-radius:28px;
    }
    h1{
        font-size:28px;
    }
    h2{
        font-size:22px;
    }
}

.floating-line-contact{
    position:fixed;
    right:16px;
    bottom:18px;
    z-index:9999;
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    background:linear-gradient(180deg,#22c55e,#16a34a);
    color:#fff;
    padding:14px 18px;
    border-radius:999px;
    box-shadow:
        0 16px 30px rgba(34,197,94,.28),
        0 6px 14px rgba(0,0,0,.16);
    border:3px solid rgba(255,255,255,.92);
    min-width:220px;
    transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.floating-line-contact:hover{
    transform:translateY(-2px) scale(1.02);
    box-shadow:
        0 20px 34px rgba(34,197,94,.34),
        0 8px 18px rgba(0,0,0,.18);
}

.floating-line-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex:0 0 42px;
}

.floating-line-text{
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.floating-line-text strong{
    font-size:16px;
    font-weight:900;
    color:#fff;
}

.floating-line-text small{
    font-size:12px;
    color:rgba(255,255,255,.92);
    margin-top:3px;
}

@media (max-width:640px){
    .floating-line-contact{
        right:12px;
        bottom:14px;
        min-width:auto;
        padding:12px 14px;
        border-radius:20px;
    }

    .floating-line-text strong{
        font-size:14px;
    }

    .floating-line-text small{
        font-size:11px;
    }

    .floating-line-icon{
        width:38px;
        height:38px;
        font-size:20px;
        flex:0 0 38px;
    }
}

.hero.card{
    position:relative;
}
.top-menu-wrap{
    position:absolute;
    top:16px;
    right:16px;
    z-index:50;
}
.top-menu-btn{
    border:none;
    background:#fff;
    color:#222;
    padding:10px 14px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(0,0,0,.12);
}
.top-menu-panel{
    display:none;
    margin-top:8px;
    width:260px;
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    box-shadow:0 16px 40px rgba(0,0,0,.14);
    padding:10px;
}
.top-menu-panel.show{
    display:block;
}
.top-menu-link{
    display:block;
    width:100%;
    border:none;
    background:#fff7f9;
    color:#222;
    text-align:left;
    padding:12px 14px;
    border-radius:10px;
    cursor:pointer;
    font-size:14px;
    line-height:1.6;
    margin:0 0 8px 0;
}
.top-menu-link:last-child{
    margin-bottom:0;
}
.top-menu-link:hover{
    background:#ffeaf0;
}