body {
    font-family: '微軟正黑體', Arial, Helvetica, sans-serif;
    background: #FFF7E6;
    margin: 0;  
 background-image: url(../img/bk.png);
 background-repeat: no-repeat; /* Prevents image from tiling */
  background-position: center center; /* Centers the image */
  background-size: cover; /* Scales the image to cover the entire body */
  background-attachment: fixed; /* Keeps the background fixed during scrolling */		
}
html, body {
  min-width: 320px;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;      /* 手機可左右滑 */
  -webkit-overflow-scrolling: touch;
}


label {
    font-weight: bold;
    display: block;
  /*  margin-top: 20px;*/
}
 
  input::placeholder,
  textarea::placeholder {
  color: #aaa !important;        /* 顏色（灰色） */
  opacity: 0.6 !important;       /* 透明度，數字越小越淡 */
  font-size: 14px !important;    /* 字體大小 */
  font-weight: 300 !important;   /* 字重：100~900，數字越大越粗 */
  font-style: italic !important; /* 字型樣式：normal, italic */
  font-family: "Microsoft JhengHei", sans-serif !important; /* 也可以換字型 */
 }
 
 
 .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.form-check-label{
	margin-top: 0;
}
 
/* begin family.php   */

/* Navbar */
.navbar {
  background-color: #ffa255 !important; 
}
.navbar .navbar-brand {
  color: #fff !important; 
}
.navbar .btn-outline-light {
  border: 1px solid #fff;
  color: #fff;font-weight: 600;
}
.navbar .btn-outline-light:hover {
  background-color: #fff;
  color: #E6A15D;
}
 

    .page-wrap{max-width:960px;margin:auto}
    .rounded-24{border-radius:24px}
	.nav-item button{	height: 65px; }

    /* Tabs look like your screenshot */
    .nav-tabs .nav-link{font-weight:700;border:none;padding:.9rem 1.2rem;width:100%;text-align:center}
    .nav-tabs{background:#d7ecfb;border-radius:14px 14px 0 0;overflow:hidden;display:flex}
	.nav-tabs .nav-item{flex:1}
    .nav-tabs .nav-link.active{background:#ffa255;color:#fff;font-weight:800}
    .nav-tabs .nav-link:not(.active){background:#fff;color:#ffa255;border:2px #eee;border-color:#e9f2fb;}
    /* Main card */
    .main-card{border:none;box-shadow:0 20px 40px rgba(0,0,0,.08)}
    .alert-soft{background:#e9f2fb;border-left:6px solid #3f86e6}
    .form-label{font-weight:700}

 

/* Tabs */
.nav-tabs .nav-link {
  background-color: #e6a15d8f;
  color: #5D4037;
  font-weight: 800;
  border:1px solid;
}
 
 .nav-tabs .nav-link:hover {
		  background-color:#ffa255;
		  color: #fff;
			}

/* Body & Card */
 
.card, .tab-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  padding: 20px;
}

/* Info Section */
.info-section {
  background-color: #FFF4E5;  /* 淡橘米色 */
  border-left: 4px solid #E6A15D;
  padding: 16px 20px;
  border-radius: 8px;
}
.info-section p {
  margin: 6px 0;
  font-size: 15px;
  color: #5D4037;
}

/* Buttons */
.btn-primary {
  background-color: #E6A15D;
  border: none;
}
.btn-primary:hover {
  background-color: #ffa255; /* hover  */
}

.my-btn {
  background-color: #E6A15D;
  border: none;
   color:#fff;
}
.my-btn:hover {
  background-color: #ffa255; /* hover  */
  color:#fff;
}


.my-link {
  color: #0d6efd; /* Bootstrap 藍色 */
  text-decoration: none; /* 移除底線 */
  font-weight: 500;
  
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.my-link:hover {
  background-color: #e7f1ff;
  color: #084298;
  text-decoration: none; /* 移除底線 */
}

.line-button {
  background-color: #00C300;     /* LINE 綠色 */
  color: white;
  font-weight: 500;
  padding: 6px 12px;             /* 內距縮小 */
  font-size: 14px;               /* 字體縮小 */
  border-radius: 4px;            /* 圓角稍微小一點 */
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.line-button:hover {
  background-color: #00a300;
  color: white;
  text-decoration: none;
}

.loading-message {
  background-color: #BEBEBE;
  color: #333;
  
  border-radius: 6px;
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  
  animation: pulse 1.5s infinite;
  
  display: inline-block;
  white-space: nowrap;
  padding: 4px 6px;
  background: #ddd;
  border-radius: 8px;
  
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}


.pagination {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin: 20px 0;
  font-family: "Microsoft JhengHei", sans-serif;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: block;
  padding: 8px 12px;
  background-color: #f2f2f2;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 36px;
  text-align: center;
}

.pagination a:hover {
  background-color: #007bff;
  color: white;
}

.pagination li.active a {
  background-color: #007bff;
  color: white;
  pointer-events: none;
}

.pagination i {
  font-size: 14px;
  vertical-align: middle;
}

.warning-text {
  color: #d93025; /* Google 紅 */
  font-weight: bold;
  font-size: 15px;
  padding: 8px 12px;
  display: inline-block;
  background-color: #ffeaea;
  border: 1px solid #f5c2c2;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: center;
}
/* end family.php   */


/* begin serve.php  複製下載qr code  */
.qr-image  {
 text-align:center;
}
 
.qr-image img {
  width: 100px;
  height: 100px;
  border: 2px solid #00c300;
  border-radius: 8px;
   display: inline-block;
    
}

/* 下載按鈕 */
.download-btn {
  display: block;
  width: 100%;
  background-color: #00c300;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.download-btn:hover {
  background-color: #00a800;
}

/* 右側複製區 */
.code-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  
}

.code-text {
  flex: 1;
  font-size: 14px;
  background: transparent;
  border: none;
  color: #333;
  padding: 5px;
  overflow-x: auto;
}

.copy-btn {
  margin-left: 10px;
  padding: 6px 12px;
  background-color: #00c300;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: #00a800;
}

.copy-msg {
  margin-top: 10px;
  color: green;
  font-size: 14px;
  display: none;
}

.btn-wrap {
  display: inline-flex;
  border: 2px solid #28c; 
  border-radius: 8px;
  padding: 6px 12px;
  width: auto !important;
}

.view-btn {
  display: inline-block !important;
  width: auto !important;
  padding: 4px 12px;
}
/* end serve.php  複製下載qr code  */

/*begin register2.php */
.identity-hint {
  font-size: 13px; /* 字體小一點 */
  background-color: #f3f4f6; /* 淡灰背景 */
  padding: 4px 6px;
  border-radius: 4px;
  color: #374151; /* 深灰文字 */
  margin-top: 28px;
  line-height: 1.4;
  font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.identity-hint strong {
 color: #1d4ed8; /* 深藍字體加強關鍵詞 */
}
/*end register2.php */

/* 手機版 */
@media (max-width: 576px) {
  .container {
    padding: 10px;
  }

  h1 {
    font-size: 22px;
  }

  .btn {
   /* width: 100%;
    font-size: 16px;
    padding: 10px;*/
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  padding: 6px 14px;  /* 手機不會太大 */
  font-size: 14px;   /* 文字保持剛好 */
  }

  .card {
    margin-bottom: 12px;
  }
}


img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 576px) {
  .row {
    flex-direction: column;
  }

  .col-6 {
    width: 100%;
  }
}

/* 手機版  end*/