/* ===============================
   🍂 全站通用設定（字體與主色調）
   =============================== */
   body {
    font-family: "Chocolate Classical Sans","Noto Serif TC", "微軟正黑體", serif;
    color: #3b2b1c;
    background-color: #fdf6e3;
}
/* 奶油侘寂風：radio button 選中樣式 */
.ui-controlgroup .ui-btn.ui-btn-active {
  background-color: #ffffff !important; /* 奶茶焦糖色 */
  color: #3D7C6D !important;           /* 白字 */
  border-color: #e4e4e4 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* 未選中按鈕樣式 */
.ui-controlgroup .ui-btn {
  background-color: #fcf8f3 !important; /* 奶油米底色 */
  color: #3b2b1c !important;           /* 深棕色文字 */
  border: 1px solid #e0d8c0 !important;
  text-shadow: none !important;
  font-weight: bold;
}
/* 🧽 清除 jQuery Mobile 的 .ui-field-contain 樣式 */
.ui-field-contain {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* ===============================
   🍁 Footer 樣式
   =============================== */
.footer-bar {
    text-align: center;
    padding: 25px 0;
    background: #f8f9fa;
    font-size: 14px;
    color: #444;
}

.footer-bar a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    font-weight: 500;
}

.footer-bar a:hover {
    color: #D4A373;
}
.footer-wrapper {
}

.footer-nav-main {
  text-align: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-nav-main a {
  color: #4a4436;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-nav-main a:hover {
  color: #7e6651;
}
.footer-nav-main a:visited{
  color: #4a4436;
}
.footer-legal {
  margin-top: 13px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.footer-legal a {
  color: #999;
  text-decoration: none;
  margin: 0 4px;
}

.footer-legal a:hover {
  color: #555;
}
.footer-legal a:visited{
  color: #999;
}

/* ===============================
   📌 命理結果標題區（例如：請在下方輸入車牌）
   =============================== */
#result1 {
    font-size: 2em;
    font-weight: bold;
}

#result2 {
    font-size: 1em;
    color: #5A4636;
}

/* ===============================
   🧧 命理解釋卡片外框（共用卡片）
   =============================== */
.result-card {
    background: #FFFFFF;
    border: 2px solid #e0d8c0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===============================
   ⭐️ 命理分數徽章（吉／兇／平）
   =============================== */
.fortune-score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fortune-badge {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 12px 20px;
    width: fit-content;
}

.fortune-good {
    background-color: #4CAF50;
}

.fortune-bad {
    background-color: #D32F2F;
}

.fortune-neutral {
    background-color: #9E9E9E;
    color: #fff;
}

/* ===============================
   🚗 車牌與命理分數展示
   =============================== */
.plate-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: #5D4037;
    background-color: #e8e8e8;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    color: #C69C6D;
    background-color: #FFF3E0;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* ===============================
   🧾 詩籤與內容解釋區
   =============================== */
.car-number {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.poem {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8B5E3C;
    margin-top: 15px;
    padding: 10px;
    background: #FDF6E3;
    border-radius: 8px;
}

.poem-content {
    font-size: 1.5rem;
    font-family: "LXGW WenKai Mono TC", sans-serif;
    line-height: 1.6;
    color: #5A4636;
    margin: 20px 0;
}

/* ===============================
   📖 命理解釋段落（左邊有色條）
   =============================== */
.interpretation {
    margin-top: 15px;
    text-align: left;
    background: #FFF;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #D4A373;
}

.interpretation p {
    font-size: 1rem;
    margin: 5px 0;
    line-height: 1.6;
    color: #5A4636;
}

/* ===============================
   ✨ 星星評分區塊
   =============================== */
.stars {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-direction: row-reverse;
}

.stars input {
    display: none;
}

.stars label {
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

/* 點選後的星星 */
.stars input:checked ~ label {
    color: #f39c12;
}

/* 滑鼠懸停星星 */
.stars label:hover,
.stars label:hover ~ label {
    color: #f39c12;
}

/* 小螢幕上的星星大小調整（emm 打錯） */
@media (max-width: 768px) {
    .stars label {
        font-size: 2.5em; /* 修正原本是 emm 打錯了 */
    }
}

@media (min-width: 769px) {
    .stars label {
        font-size: 2.5em;
    }
}

/* ⭐️ 評分送出按鈕 */
#submitRating {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background-color: hsl(148, 25%, 88%);
    color: hsl(148, 25%, 28%);
    cursor: pointer;
    transition: background-color 0.3s;
}
#submitRating:hover {
    background-color: hsl(151, 20%, 79%);
}

/* ===============================
   🧾 補充：文字段落樣式
   =============================== */
.fortune-text-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    text-align: left;
}

.fortune-text-section h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #444;
    border-bottom: 2px solid #e0d8c0;
    padding-bottom: 0.5rem;
}

.fortune-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.aspect {
    margin-bottom: 0.625rem;
}

.aspect-title {
    font-weight: bold;
    color: #555;
    margin-right: 0.3125rem;
}

/* ===============================
   🖼️ 命理解釋圖像區塊
   =============================== */
.image-container {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: inherit;
}
/* 記住車牌 */
/* ✅ 奶油侘寂風 Checkbox：記住車牌 */
#rememberLicense {
  appearance: none;              /* 移除原生樣式 */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #3D7C6D;     /* 墨綠邊框 */
  border-radius: 50%;            /* 圓形框 */
  background-color: transparent; /* 無背景 */
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  transition: all 0.2s ease;
}

/* ✅ 被勾選時的綠色圓心打勾效果 */
#rememberLicense:checked::before {
  content: '✔';
  position: absolute;
  top: -10px;
  left: 1px;
  font-size: 30px;
  color: #3B2B1C;
}

/* ✅ hover 效果（可選） */
#rememberLicense:hover {
  box-shadow: 0 0 0 3px rgba(61, 124, 109, 0.3); /* 墨綠柔光圈 */
}

/* 🧁 奶油風下拉選單 */
#zodiac {
  background-color: #fcf8f3;
  color: #3B2B1C;
  border: 1px solid #e0d8c0;
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
  font-size: 1em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%233B2B1C' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

#zodiac:focus {
  border-color: #C69763;
  box-shadow: 0 0 0 2px rgba(198, 151, 99, 0.2);
  outline: none;
}


/* 📋 表單主要區塊（ul） */
#formplate{
  background-color: #fcf8f3;   /* 更柔一點的奶油色 */
  border: 1px solid #e0d8c0;   /* 奶茶邊框 */
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
#qstatesf{
    background-color: #fcf8f3;   /* 更柔一點的奶油色 */
  border: 1px solid #e0d8c0;   /* 奶茶邊框 */
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}
/* 🧁 奶茶色按鈕：「好」 */
#okgo {
    margin-top: 15px;
  background-color:  hsl(28, 39%, 73%);
  color: white;
  font-weight: bold;
  border: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1em;
  box-shadow: none;
  cursor: pointer;
}

#okgo:hover {
  background-color:hsl(32, 46%, 78%);
}

/* 🍃 抹茶綠按鈕：「幫我選」 */
#helpmes{
    margin-top: 15px;
  background-color: hsl(148, 25%, 88%);
  color: hsl(148, 25%, 28%);
  font-weight: bold;
  border: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1em;
  box-shadow: none;
  cursor: pointer;
}

#helpmes:hover{
  background-color: hsl(151, 20%, 79%);
}

 .input-underline {
  background-color: transparent;      /* 無背景 */
  border: none;                       /* 移除整體邊框 */
  border-bottom: 2px solid #e0d8c0;   /* 僅保留底線，淡米色 */
  border-radius: 0;                   /* 無圓角 */
  padding: 8px 4px;
  font-size: 1.6em;
  color: #3B2B1C;
  font-family: "LXGW WenKai Mono TC", sans-serif;
  box-shadow: none;
  outline: none;                      /* 點擊不出現藍邊 */
  transition: border-color 0.3s;
}
.input-underline:focus {
  border-bottom: 2px solid #3D7C6D;   /* 對焦時換成綠色底線 */
}
#doheart{color:tomato;}
#dook{margin-top: 10px;
  background-color:  hsl(28, 39%, 73%);
  color: white;
  border: none;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1em;
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
}
#dook:hover {
  background-color:hsl(32, 46%, 78%);
}
#donext{
 margin-top: 10px;
 text-shadow: none;
  background-color: hsl(148, 25%, 88%);
  color: hsl(148, 25%, 28%);
  border: none;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1em;
  box-shadow: none;
  cursor: pointer;
}
#donext:hover{
  background-color: hsl(151, 20%, 79%);
}
#contactme-ok{
 margin-top: 15px;
  background-color:  hsl(28, 39%, 73%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1em;
  box-shadow: none;
  cursor: pointer;
  text-shadow: none;
}

#contactme-ok:hover {
  background-color:hsl(32, 46%, 78%);
}

.matcha-close-btn {
    width: 100%;
  display: inline-block;
  background-color: hsl(148, 25%, 88%); /* 淺抹茶綠 */
  color: hsl(148, 25%, 28%);           /* 抹茶深綠 */
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  font-weight: bold;
  cursor: pointer;
}

.matcha-close-btn:hover {
  background-color: hsl(148, 25%, 78%);
  color: hsl(148, 25%, 28%);
}

.badge-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 4px; /* 避免 radio 緊貼 */
}

.badge-new {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e94e77;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight:normal;
  text-shadow: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  z-index: 20;
}