/* 自有样式（生日水彩粉） · 覆盖在 Bootstrap 之后 */
:root{
    --bs-body-font-family:"Noto Sans SC","PingFang SC","Helvetica Neue",Arial,sans-serif;
    --bs-body-color:#3B2E29;
    --bs-body-bg:#FFF8F0;
    --bs-body-font-size:15px;
    --bs-border-color:#EFE3E0;
    --ink:#3B2E29; --ink-2:#796963; --ink-3:#A99A94;
    --pink:#EF7183; --pink-deep:#DE4F66;
  }
  html,body{margin:0;padding:0;}
  body{
    font-family:"Noto Sans SC","PingFang SC","Helvetica Neue",Arial,sans-serif;
    background:#FFF8F0; color:var(--ink); -webkit-font-smoothing:antialiased;
  }
  .app{
    position:relative; max-width:420px; margin:0 auto; min-height:100vh;
    background:linear-gradient(180deg,#FFFCF7 0%,#FFF7EE 46%,#FFF2E7 100%);
    box-shadow:0 0 70px rgba(190,150,140,.18);
    overflow:hidden;
  }

  .screen{display:none; padding-bottom:104px;}
  .screen.on{display:block;}
  #screen-select{padding-bottom:150px;}
  #screen-confirm{padding-bottom:172px;}

  /* ================= 生日水彩头图 ================= */
  .banner{
    position:relative; height:252px; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    background-image:url('/static/img/hero.webp?v=2');
    background-size:cover; background-position:center 32%;
    background-repeat:no-repeat;
  }
  .banner::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(180deg,rgba(255,252,247,.06) 0%,rgba(255,252,247,0) 58%,rgba(255,248,240,.92) 100%);
  }
  .banner h1{
    position:relative; z-index:3; margin:0; padding:0 18px; text-align:center;
    font-size:26px; line-height:1.4; letter-spacing:2px; font-weight:900;
    color:#6B3A2C;
    text-shadow:0 1px 0 rgba(255,255,255,.92), 0 0 16px rgba(255,255,255,.95), 0 4px 16px rgba(255,255,255,.75);
  }

  /* ================= 卡片（Bootstrap card 定制） ================= */
  .login-card,.plan-card,.done-card,.info-card,.notice-card{
    background:#fff; border:1px solid #FFF2F2; border-radius:22px;
    box-shadow:0 18px 36px -20px rgba(200,140,130,.5);
    color:var(--ink); overflow:hidden;
  }
  .login-card{margin:-34px auto 0;}
  .login-card .card-body{padding:24px 20px 22px;}
  .login-card .card-title{
    margin:0 0 22px; text-align:center; font-size:21px; font-weight:900;
    letter-spacing:3px; color:#4A3A34;
  }

  .login-input{
    border-radius:13px; margin-bottom:13px; background:#FFFCFA;
  }
  .login-input .input-group-text{
    background:#FFFCFA; border:1px solid #EFE3E0; border-right:0; color:#D8B3AE;
    padding:0 10px 0 14px; border-radius:13px 0 0 13px;
  }
  .login-input .input-group-text svg{width:17px;height:17px;display:block;}
  .login-input .form-control,.login-input .form-select{
    height:54px; min-height:54px; border:1px solid #EFE3E0; border-left:0;
    border-radius:0 13px 13px 0; background-color:#FFFCFA;
    font-family:inherit; font-size:15px; color:#3B2E29; letter-spacing:.5px;
    box-shadow:none;
  }
  .login-input .form-control{padding-left:10px;}
  .login-input .form-control::placeholder{color:#C7B7B2; font-size:15px;}
  .login-input .form-control:focus,.login-input .form-select:focus{
    border-color:#F3A8B4; background-color:#fff;
    box-shadow:0 0 0 3px rgba(245,160,175,.16);
    outline:0;
  }
  .login-input .form-select{
    color:#C7B7B2; padding-left:10px; cursor:pointer;
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23CBA9A6' stroke-width='1.8'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-size:16px; background-position:right 14px center;
  }
  .login-input .form-select.picked{color:#3B2E29;}

  .btn-brand{
    display:flex; align-items:center; justify-content:center;
    width:100%; height:56px; margin-top:10px; padding:0;
    border:0; border-radius:28px;
    font-family:inherit; font-size:17px; font-weight:500; letter-spacing:4px; color:#fff;
    background:linear-gradient(180deg,#FF9BA6 0%,#F76B7F 55%,#EE5069 100%);
    box-shadow:0 12px 22px -10px rgba(230,80,105,.65), inset 0 1px 0 rgba(255,255,255,.5);
  }
  .btn-brand:hover,.btn-brand:focus{color:#fff; background:linear-gradient(180deg,#FFA6B0 0%,#F8798B 55%,#F05C73 100%);}
  .btn-brand:active{transform:translateY(1px);}
  .btn-brand:disabled{
    background:#EADFDA; color:#fff; box-shadow:none; letter-spacing:2px; border:0;
  }
  .btn-outline-brand{
    display:flex; align-items:center; justify-content:center;
    width:100%; height:50px; padding:0; margin-top:10px;
    border:1px solid #F7CDD4; border-radius:25px; background:#fff;
    font-family:inherit; font-size:15px; color:var(--pink-deep); letter-spacing:2px;
  }
  .btn-outline-brand:hover{background:#FFF6F7; border-color:#F3B3BE; color:var(--pink-deep);}
  .btn-brand:focus-visible,.btn-outline-brand:focus-visible{outline:0; box-shadow:0 0 0 3px rgba(247,167,182,.35);}
  .login-tip{margin:18px 2px 0; font-size:11.5px; line-height:1.9; color:#A99A94; text-align:center;}

  .notice-card{margin:0 16px 14px; border-color:#F9DFE4; background:#FFF6F7;}
  .notice-card .card-body{padding:20px 18px 18px;}
  .notice-card .card-title{
    margin:0 0 12px; text-align:center; font-size:20px; font-weight:900;
    letter-spacing:5px; color:var(--pink-deep);
  }
  .notice-card p{margin:0; font-size:12.5px; line-height:2.05; letter-spacing:.4px; color:#6E5A54; text-indent:2em; text-align:justify;}
  .foot{text-align:center; font-size:10.5px; color:#B7A7A2; letter-spacing:1px; padding:26px 20px 34px; line-height:2;}

  .page-head{position:relative; z-index:3; text-align:center; padding:2px 24px 0;}
  .page-head h2{margin:0; font-size:19px; font-weight:700; letter-spacing:3px; color:#4A3A34;}
  .page-head p{margin:7px 0 0; font-size:11.5px; color:#A99A94; letter-spacing:1px;}

  /* ================= 选品页 ================= */
  .user-card{
    display:flex; align-items:center; gap:12px;
    background:#fff; border:1px solid #FFF0F1; border-radius:18px;
    margin:16px; padding:14px 16px;
    box-shadow:0 14px 28px -20px rgba(200,140,130,.55);
  }
  .avatar{
    width:46px;height:46px;border-radius:50%;flex:0 0 auto;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(140deg,#FFE3E8,#FFC3CE);
    color:#C05063; font-size:17px; font-weight:700;
  }
  .user-card .u-main{flex:1;min-width:0;}
  .u-name{margin:0; font-size:16px; font-weight:700; display:flex; align-items:center; gap:8px;}
  .u-name .code{font-size:10.5px; font-weight:400; color:#B97C86; background:#FFF1F3; border-radius:5px; padding:1px 6px;}
  .u-sub{margin:6px 0 0; font-size:11.5px; color:#A99A94;}
  .u-sub em{font-style:normal;color:var(--pink-deep);}
  .u-side{flex:0 0 auto;}
  .u-side .warn{font-size:10px; color:#C0768A; background:#FFF0F4; padding:3px 8px; border-radius:6px; white-space:nowrap;}

  .plan-card{
    position:relative; margin:0 16px 14px; border:0;
    border-radius:20px; box-shadow:0 16px 30px -22px rgba(200,140,130,.6);
    transition:border-color .2s, box-shadow .2s;
  }
  .plan-card.sel{box-shadow:inset 0 0 0 2px #F7A7B6, 0 0 0 3px rgba(247,167,182,.22), 0 20px 32px -20px rgba(200,110,130,.55);}
  .plan-card .btn-check{position:absolute; opacity:0; pointer-events:none;}
  .plan-label{display:block; padding:18px 14px 14px; margin:0; cursor:pointer; color:var(--ink);}

  .pick{
    position:absolute; right:14px; top:14px; width:22px; height:22px; border-radius:50%;
    border:1.5px solid #EADCDC; background:#fff; z-index:3;
    display:flex; align-items:center; justify-content:center; transition:all .2s;
  }
  .pick svg{width:14px;height:14px;color:#fff;opacity:0;transition:opacity .2s;}
  .plan-card.sel .pick{background:linear-gradient(180deg,#FF9FAD,#EE5B72); border-color:#EE5B72; box-shadow:0 0 0 1px #EE5B72;}
  .plan-card.sel .pick svg{opacity:1;}

  .plan-card h3{margin:0; text-align:center; font-size:22px; font-weight:900; letter-spacing:4px; color:#4A3A34;}
  .plan-card .tag{display:block; text-align:center; font-size:11.5px; letter-spacing:4px; color:var(--pink-deep); margin:6px 0 14px;}
  .plan-art{
    height:132px; border-radius:14px; display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
  }
  .plan-art svg{width:112px;height:112px;position:relative;z-index:2;}
  .plan-art::after{
    content:""; position:absolute; right:-18px; bottom:-26px; width:110px;height:110px;
    border-radius:50%; background:rgba(255,255,255,.5);
  }
  .plan-art.a{background:linear-gradient(150deg,#FFF0F3,#FFD9E0);}
  .plan-art.b{background:linear-gradient(150deg,#FFF7E9,#FBE4C6);}
  .plan-art.c{background:linear-gradient(150deg,#EFF7F4,#D8EAE4);}
  .plan-art.d{background:linear-gradient(150deg,#F7F3FB,#E5DCF1);}
  .plan-art.e{background:linear-gradient(150deg,#F3F8F2,#DDEBDA);}

  /* 明细表（Bootstrap table 定制） */
  .plan-table{
    --bs-table-color:#6A5751; --bs-table-bg:transparent;
    width:100%; margin:12px 0 0; font-size:11.5px; table-layout:fixed;
    border-collapse:collapse; color:#6A5751;
  }
  .plan-table thead th{
    background:#F1727F; color:#fff; font-weight:400; font-size:11px;
    padding:7px 4px; text-align:center; letter-spacing:.5px; vertical-align:middle; border:0;
  }
  .plan-table thead th:first-child{border-radius:8px 0 0 0;}
  .plan-table thead th:last-child{border-radius:0 8px 0 0;}
  .plan-table tbody td{
    padding:7px 4px; text-align:center; color:#6A5751; vertical-align:middle; line-height:1.4;
    background:#fff; border-bottom:1px solid #F8E9E9;
  }
  .plan-table tbody tr:nth-child(even) td{background:#FFF7F8;}
  .plan-table tbody tr:last-child td{border-bottom:0;}
  .plan-table td.item{text-align:left; padding-left:8px; color:#3B2E29;}

  .list-tip{
    display:flex; align-items:center; justify-content:center; gap:8px;
    text-align:center; font-size:11.5px; color:#B3A29C; letter-spacing:1px;
    padding:8px 0 22px;
  }
  .list-tip .tip-line{display:inline-block;}
  .list-tip .spinner{
    width:14px;height:14px;border-radius:50%;
    border:2px solid #F7D6DC; border-top-color:#EF7183;
    animation:lspin .7s linear infinite; display:inline-block;
  }
  @keyframes lspin{to{transform:rotate(360deg);}}
  .plan-foot{display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding-top:11px; border-top:1px dashed #F7DCDE;}
  .plan-foot .price{font-size:19px; font-weight:700; color:var(--pink-deep); letter-spacing:.5px;}
  .plan-foot .price small{font-size:11px; font-weight:400; color:#A99A94; margin-left:3px;}
  .plan-foot .hint{font-size:11px; color:#A99A94; letter-spacing:.5px;}

  /* ================= 底部操作条 ================= */
  .bottom{
    position:fixed; left:50%; transform:translateX(-50%);
    bottom:0; width:100%; max-width:420px; z-index:20;
    padding:14px 16px 24px;
    background:linear-gradient(180deg,rgba(255,248,240,0) 0%,rgba(255,246,236,.94) 32%,#FFF3E8 72%);
    backdrop-filter:blur(4px);
  }
  .bottom-row{display:flex; align-items:center; gap:12px; flex-wrap:nowrap;}
  .bottom .info{flex:0 0 auto;}
  .bottom .info p{margin:0; font-size:10px; color:#B3A19B; letter-spacing:1px;}
  .bottom .info h5{margin:3px 0 0; font-size:14px; font-weight:500; color:#4A3A34; letter-spacing:1px;}
  .bottom .btn-brand{margin-top:0; flex:1; height:52px; font-size:16px; letter-spacing:2px;}

  /* ================= 确认页 ================= */
  .info-card{margin:16px 0;}
  .info-card .card-body{padding:14px 16px;}
  .info-list{margin:0;}
  .info-list .list-group-item{
    display:flex; align-items:flex-start; gap:14px; padding:16px 0;
    background:transparent; border:0; border-bottom:1px solid #FAEEEE; color:var(--ink);
  }
  .info-list .list-group-item:last-child{border-bottom:0;}
  .info-list .k{flex:0 0 70px; font-size:12px; color:#A99A94; letter-spacing:2px; padding-top:2px; margin:0;}
  .info-list .v{margin:0; flex:1; font-size:15px; color:#3B2E29; line-height:1.5;}
  .info-list .v .sm{display:block; font-size:11px; color:#B3A29C; margin-top:5px; letter-spacing:0;}
  .info-list .v em{font-style:normal; color:var(--pink-deep); font-weight:500;}

  .detail-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:2px;}
  .detail-head .t{font-size:12px; color:#A99A94; letter-spacing:2px;}
  .detail-head .p{font-size:14px; font-weight:700; color:var(--pink-deep);}

  .confirm-tip{
    margin:14px 16px 0; background:#FFF5F6; border:1px solid #F9DEE2;
    border-radius:16px; padding:14px 16px;
  }
  .confirm-tip h4{margin:0 0 8px; font-size:13px; color:var(--pink-deep); letter-spacing:2px;}
  .confirm-tip p{margin:0; font-size:11.5px; line-height:1.95; color:#7A6862;}

  /* ================= 成功页 ================= */
  .done{margin:16px;}
  .done-card .card-body{padding:34px 22px 26px; text-align:center;}
  .done-icon{
    width:76px;height:76px;border-radius:50%;margin:0 auto;
    background:linear-gradient(160deg,#FFC2CC,#F0728A);
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 0 0 8px rgba(246,150,168,.16), 0 0 0 18px rgba(246,150,168,.08);
  }
  .done-icon svg{width:38px;height:38px;color:#fff;}
  .done-card .card-title{margin:26px 0 0; font-size:22px; font-weight:900; letter-spacing:4px; color:#3B2E29;}
  .done-lead{margin:10px 0 0; font-size:12px; color:#A99A94; line-height:1.9;}
  .done-detail{margin:22px 0 0; text-align:left; background:#FFF8F7; border-radius:12px; padding:14px 14px 6px;}
  .done-detail .k{font-size:10.5px; color:#B3A29C; letter-spacing:1px;}
  .done-detail .v{font-size:14px; margin:4px 0 10px; color:#3B2E29;}

  /* toast */
  .toast-custom{
    position:fixed; left:50%; bottom:130px; transform:translate(-50%,12px);
    background:rgba(74,58,52,.92); color:#fff; font-size:12.5px;
    padding:10px 18px; border-radius:999px; opacity:0; pointer-events:none;
    transition:all .25s; z-index:99; max-width:80%; text-align:center; line-height:1.6;
    border:1px solid rgba(255,214,220,.4);
  }
  .toast-custom.on{opacity:1; transform:translate(-50%,0);}

/* ---------- 生日填写 ------------- */
.bd-link{background:none;border:0;color:#DE4F66;font-size:11.5px;padding:0 0 0 6px;
  text-decoration:underline;text-underline-offset:3px;vertical-align:baseline;}
.bd-link:disabled{color:#C3B5B0;text-decoration:none;}
.sheet-mask{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(60,40,35,.38);
  display:none;z-index:60;align-items:flex-end;justify-content:center;}
.sheet-mask.on{display:flex;}
.sheet{width:100%;max-width:420px;background:#fff;border-radius:22px 22px 0 0;
  padding:22px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow:0 -8px 30px rgba(160,110,100,.26);animation:sheetUp .24s ease;}
@keyframes sheetUp{from{transform:translateY(26px);opacity:.65}to{transform:none;opacity:1}}
.sheet h3{margin:0 0 6px;font-size:17px;color:#3B2E29;letter-spacing:1px;}
.sheet-sub{margin:0 0 14px;font-size:12px;color:#A99A94;line-height:1.7;}
.sheet-note{margin:10px 0 16px;font-size:11.5px;color:#DE4F66;}
.sheet-actions{display:flex;gap:10px;}
.sheet-actions .btn{flex:1;}
#bd-input{height:46px;font-size:15px;border-radius:12px;border:1px solid #F3DEDA;color:#3B2E29;}

/* ---------- 正式三方案：实拍图 + 券面说明 ------------- */
.plan-art.has-photo{height:auto; aspect-ratio:4/3; background:#fff;}
.plan-art.has-photo::after{display:none;}
.plan-art .plan-photo{
  width:100%; height:100%; object-fit:contain; display:block;
  border-radius:14px; background:#FFF6F4;
}
.plan-terms{
  margin:10px 0 0; padding:8px 11px; border-radius:8px;
  background:#FFF8F7; border-left:2px solid #F5C2CC;
  font-size:11px; line-height:1.8; color:#9C867D;
}
.plan-foot .price{font-size:19px;}
.notice-card .notice-dead{
  margin:12px 0 0; font-size:11.5px; color:#DE4F66;
  letter-spacing:.2px; background:#FFF1F3; border-radius:8px; padding:8px 11px;
}
.notice-card .notice-dead.over{color:#8C7B75; background:#F7F2EF;}
