/* Robust BNI - shared styles */
*{box-sizing:border-box;margin:0;padding:0}
html{
  font-size: clamp(16px, 1.2vw + 12px, 18px);
}
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #22245a url("../images/5405294.jpg") center/cover fixed no-repeat;
  color:#fff;
  line-height:1.55;
}
a{color:inherit;text-decoration:none}

.app{
  min-height:100vh;
  max-width:480px;
  margin:0 auto;
  padding:16px 16px 24px;
  background:transparent;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand img{max-width:140px;height:auto}
.back-link{color:#fff;opacity:.85;font-size:.95rem}
.top-actions{display:flex;gap:8px;align-items:center}

/* Sections */
.section{margin-top:24px}
.section-title{font-size:1.35rem;font-weight:800;margin-bottom:8px}
.section-subtitle{font-size:.95rem;opacity:.75}

/* Buttons */
.primary-btn,.secondary-btn{
  border-radius:999px;
  padding:12px 20px;
  font-size:1rem;
  border:none;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  gap:8px;
}
.primary-btn{background:#f6b441;color:#1b243a}
.secondary-btn{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.30)}
.btn-row{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px}

/* Banner */
.banner{
  border-radius:24px;
  padding:24px 20px;
  background: linear-gradient(180deg, rgba(10,24,55,0.9), rgba(35,49,77,0.9));
  box-shadow:0 16px 32px rgba(0,0,0,.40);
}
.banner h1{font-size:2rem;font-weight:800;line-height:1.2}
.banner p{margin-top:10px;font-size:1rem;line-height:1.6;opacity:.92}

/* Banner image */
.banner-image{
  margin-top:24px;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(0,0,0,.40);
}
.banner-image img{width:100%;height:auto;display:block}

/* Awards */
.awards{
  border-radius:20px;
  padding:18px 16px;
  background: rgba(10,18,40,0.86);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.award-list{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.award-item{border-radius:16px;background:rgba(255,255,255,0.06);padding:10px;text-align:center}
.award-item img{width:100%;max-width:90px;height:auto;margin:0 auto 6px;display:block}
.award-item h4{font-size:.95rem;font-weight:700}

/* Welcome cards */
.welcome{
  border-radius:20px;
  padding:18px 16px 20px;
  background: rgba(10,18,40,0.90);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.welcome p{margin-top:8px;font-size:1rem;line-height:1.6;opacity:.90}
.welcome .primary-btn{margin-top:14px;width:100%}

/* Title blocks */
.title-block{margin-top:24px}
.title-block h2{font-size:1.6rem;font-weight:800;line-height:1.25}

/* Team slider */
.doctor-slider{
  margin-top:18px;
  display:flex;
  height:280px;
  overflow-x:auto;
  overflow-y:hidden;
  gap:14px;
  padding:0 10px 8px;
}
.doctor-slider::-webkit-scrollbar{height:4px}
.doctor-slider::-webkit-scrollbar-track{background:transparent}
.doctor-slider::-webkit-scrollbar-thumb{background:#c5d2e6;border-radius:999px}

.doctor-card{
  min-width:220px;
  border-radius:24px;
  background:#e1edf9;
  padding:18px 14px 14px;
  position:relative;
  box-shadow:0 8px 16px rgba(0,0,0,.25);
}
.doctor-card.secondary{background:#f1f5fc}

/* Photo frame with gradient */
.doctor-photo-lg{
  width:100%;
  height:150px;
  border-radius:18px;
  background: linear-gradient(135deg, #3a64c9, #0c1224);
  padding:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  overflow:hidden;
  box-shadow: 0 0 18px rgba(58,100,201,.35);
}
.doctor-photo-lg img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
}

.doctor-card h3{font-size:1.05rem;font-weight:800;color:#23314d}
.doctor-card p{margin-top:2px;font-size:.92rem;color:#6e7f9d}
.badge-role{color:goldenrod;font-weight:800}
.go-btn{
  position:absolute;
  right:14px;
  bottom:14px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#1e3b57;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

/* Divider */
.divider{margin:20px 0 16px;height:2px;background:#edf1f9;border-radius:999px;width:60px}

/* Category grid */
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}
.service-card{
  border-radius:20px;
  padding:14px 14px 16px;
  background:#f4f7fc;
  color:#2a3650;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:92px;
  box-shadow:0 10px 18px rgba(0,0,0,.15);
}
.service-card h4{font-size:1.0rem;font-weight:800}
.service-card .arrow{margin-left:auto;font-size:18px;color:#6c7a92}

/* Forms */
.form-card{
  margin-top:18px;
  border-radius:24px;
  background: rgba(10,18,40,0.90);
  padding:18px 16px 20px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.50);
}
.form-group{margin-bottom:14px}
label{display:block;font-size:.95rem;margin-bottom:6px;opacity:.88}
input,textarea,select{
  width:100%;
  border-radius:14px;
  border:none;
  padding:12px 12px;
  font-size:1rem;
  font-family:inherit;
  background: rgba(255,255,255,0.10);
  color:#fff;
  outline:none;
}
input::placeholder,textarea::placeholder{color:rgba(255,255,255,0.5)}
textarea{min-height:90px;resize:vertical}
.note{margin-top:10px;font-size:.9rem;opacity:.7}

/* Footer */
.robust-footer{
  margin-top:32px;
  padding:22px 18px 30px;
  text-align:center;
  background: rgba(8,18,40,0.85);
  border-radius:20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  color:#cbd6f3;
  line-height:1.6;
}
.robust-footer .footer-title{font-size:1.05rem;font-weight:900;color:#f6b441;margin-bottom:4px}
.robust-footer .footer-sub{font-weight:600;opacity:.9;margin-bottom:10px}
.robust-footer a{color:#f6b441;font-weight:800;text-decoration:none}
.footer-copy{margin-top:12px;font-size:.88rem;opacity:.7;line-height:1.4}

/* Desktop frame */
@media (min-width:768px){
  .app{
    margin-top:24px;margin-bottom:24px;
    border-radius:32px;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
    background: linear-gradient(135deg, rgba(8,18,40,0.90), rgba(5,12,28,0.90));
  }
}

/* Members grid in category page */
.member-grid{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.member-grid .doctor-card{min-width:0;width:100%}
.member-grid .doctor-photo-lg{height:130px}
@media (max-width:360px){.member-grid{grid-template-columns:1fr}}


/* ===== DNA Slider (Index) ===== */
.dna-section{
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 20px;
    background: rgba(10,18,40,0.72);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.dna-title{
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.dna-slider{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 6px 8px;
    -webkit-overflow-scrolling: touch;
}

.dna-slider::-webkit-scrollbar{ height: 4px; }
.dna-slider::-webkit-scrollbar-track{ background: transparent; }
.dna-slider::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.18); border-radius: 999px; }

.dna-item{
    min-width: 140px; /* 小一點，適合 index */
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
}

.dna-avatar{
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f63c9, #1e2f55);
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    overflow: hidden;
    margin-bottom: 12px;
}

.dna-item{
    min-width: 140px;
}

.dna-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dna-lines{
    line-height: 1.25;
}

.dna-lines .l1{
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.dna-lines .l2,
.dna-lines .l3,
.dna-lines .l4{
    font-size: 11px;
    opacity: 0.88;
    margin-top: 3px;
}

/* 角色/Title 用金色點綴 */
.dna-lines .l2{
    color: #f6b441;
    opacity: 1;
    font-weight: 800;
}

