:root{
  --brand-1:#0f172a;
  --brand-2:#1d4ed8;
  --brand-3:#0ea5e9;
  --brand-4:#f8fafc;
  --text-1:#0f172a;
  --text-2:#475569;
  --line:#dbe5f0;
  --card:#ffffff;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --shadow:0 18px 40px rgba(15,23,42,.08);
  --shadow-lg:0 24px 64px rgba(15,23,42,.12);
  --radius:22px;
}
html{scroll-behavior:smooth}
body.site-body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  color:var(--text-1);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 24%),
    linear-gradient(180deg,#f8fbff 0%,#f4f7fb 42%,#eef3f9 100%);
  min-height:100vh;
}
a{text-decoration:none}
.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1 0 auto}
.topbar-line{height:4px;background:linear-gradient(90deg,#1d4ed8,#38bdf8,#60a5fa)}
.site-navbar{
  background:rgba(255,255,255,.84)!important;
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(226,232,240,.85);
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.site-navbar .navbar-brand{font-weight:800;letter-spacing:.2px;color:var(--brand-1)!important;line-height:1.1}
.site-navbar .navbar-brand small{font-size:.72rem}
.site-navbar .nav-link{color:#334155!important;font-weight:700;border-radius:999px;padding:.55rem .95rem!important}
.site-navbar .nav-link:hover,.site-navbar .nav-link.active{background:#eaf2ff;color:#0b57d0!important}
.page-hero{
  position:relative;overflow:hidden;border-radius:30px;padding:clamp(1.35rem,2.1vw,2.2rem);
  background:linear-gradient(135deg, rgba(15,23,42,.98), rgba(29,78,216,.95) 58%, rgba(14,165,233,.90));
  color:#fff;box-shadow:var(--shadow-lg);margin-bottom:1.5rem;
}
.page-hero::before,.page-hero::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}
.page-hero::before{right:-60px;top:-50px;width:220px;height:220px}
.page-hero::after{left:45%;bottom:-80px;width:180px;height:180px}
.page-hero .eyebrow{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .8rem;border-radius:999px;background:rgba(255,255,255,.14);font-size:.82rem;margin-bottom:.85rem}
.page-hero h1{font-weight:900;line-height:1.08;margin:0 0 .65rem;font-size:clamp(1.7rem,4vw,2.95rem)}
.page-hero p{max-width:820px;color:rgba(255,255,255,.9);margin:0}
.hero-actions .btn{min-width:140px}
.hero-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.85rem;margin-top:1rem}
.hero-stat{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:.95rem 1rem}
.hero-stat .num{font-size:1.35rem;font-weight:900}
.card,.surface-card{
  border:1px solid rgba(226,232,240,.95)!important;background:rgba(255,255,255,.92)!important;
  box-shadow:var(--shadow)!important;border-radius:var(--radius)!important;overflow:hidden;
}
.card-header,.card-footer{background:#f8fbff!important}
.soft-card{background:rgba(255,255,255,.72)!important;backdrop-filter:blur(10px)}
.metric-card .metric-label{font-size:.85rem;color:#64748b;margin-bottom:.35rem}
.metric-card .metric-value{font-size:clamp(1.35rem,2.4vw,2rem);font-weight:900;color:#0f172a}
.metric-card .metric-note{font-size:.84rem;color:#64748b}
.btn{border-radius:14px;font-weight:700;padding:.72rem 1rem}
.btn-sm{padding:.5rem .8rem;border-radius:12px}
.btn-primary{background:linear-gradient(135deg,#2563eb,#0ea5e9);border:none;box-shadow:0 12px 24px rgba(37,99,235,.22)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-success{border:none;box-shadow:0 12px 24px rgba(22,163,74,.2)}
.btn-light{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);color:#fff}
.btn-light:hover{background:#fff;color:#0f172a}
.btn-outline-primary{border-color:#bfdbfe;color:#1d4ed8}
.btn-outline-primary:hover{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}
.btn-outline-secondary{border-color:#cbd5e1;color:#334155}
.form-control,.form-select,.input-group-text,textarea{
  border-radius:14px!important;border-color:#dbe4ee!important;min-height:48px;
  box-shadow:none!important;background:#fff;
}
textarea.form-control{min-height:110px}
.form-control:focus,.form-select:focus{border-color:#93c5fd!important;box-shadow:0 0 0 .22rem rgba(59,130,246,.12)!important}
.table{--bs-table-bg:transparent}
.table thead th{background:#f8fbff;color:#475569;font-weight:800;border-bottom-color:#dbe4ee}
.table td,.table th{border-color:#e6edf5!important;vertical-align:middle}
.badge{border-radius:999px;padding:.5rem .8rem;font-weight:800}
.auth-wrap{max-width:1120px;margin:0 auto}
.auth-panel{padding:clamp(1.2rem,2.3vw,2rem)}
.auth-side{padding:clamp(1.2rem,2.8vw,2.2rem);background:linear-gradient(135deg,#0f172a,#1e40af 58%,#0ea5e9);color:#fff;height:100%}
.auth-side h2{font-weight:900;margin-bottom:.75rem}
.auth-side p,.auth-side li{color:rgba(255,255,255,.9)}
.auth-side ul{padding-left:1.1rem}
.product-grid .card-img-top{height:220px;object-fit:cover}
.product-price{font-size:1.15rem;font-weight:900;color:#dc2626}
.thumb-img{cursor:pointer;transition:transform .15s ease, box-shadow .15s ease}
.thumb-img:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(15,23,42,.16)}
.site-footer{margin-top:2rem;padding:1.25rem 0 2rem;color:#64748b}
.site-footer .footer-box{border:1px solid rgba(226,232,240,.95);background:rgba(255,255,255,.8);backdrop-filter:blur(10px);border-radius:20px;padding:1rem 1.2rem;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem}
.section-title h2{margin:0;font-size:1.2rem;font-weight:900}
.section-title p{margin:0;color:#64748b}
.info-list{display:grid;gap:.7rem;margin:0;padding:0;list-style:none}
.info-list li{display:flex;gap:.8rem;align-items:flex-start}
.info-dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#0ea5e9);margin-top:.45rem;flex:0 0 10px}
.kpi-stack{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem}
.cover-img{width:100%;height:100%;object-fit:cover}
.empty-state{padding:2rem;border:1px dashed #cbd5e1;border-radius:20px;background:rgba(255,255,255,.55)}
.price-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .9rem;background:#fff0f0;color:#b91c1c;border-radius:999px;font-weight:900}
.feature-card{height:100%}
.feature-card .icon{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#dbeafe,#eff6ff);display:flex;align-items:center;justify-content:center;font-size:1.2rem}
.status-panel{border-radius:18px;padding:1rem 1.1rem;border:1px solid #e2e8f0;background:#f8fbff}
.checkout-summary{position:sticky;top:90px}
.list-clean{list-style:none;margin:0;padding:0;display:grid;gap:.7rem}
.list-clean li{display:flex;justify-content:space-between;gap:1rem;padding:.75rem 0;border-bottom:1px dashed #e2e8f0}
.list-clean li:last-child{border-bottom:none}
.mini-note{font-size:.85rem;color:#64748b}
@media (max-width: 1199.98px){
  .site-navbar .navbar-collapse{padding-top:.85rem}
}
@media (max-width: 767.98px){
  .page-hero{border-radius:22px}
  .site-navbar .nav-link{padding:.45rem .75rem!important}
  .auth-side{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
  .section-title{align-items:flex-start;flex-direction:column}
}
