@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

[class*="col-"] { width: 100%; }

@media only screen and (min-width: 1000px) {
  .col-4 {width: 33.33%;}
  .col-6 {width: 50%; padding-right: 10px; padding-left: 10px;}
  .col-8 {width: 66.66%;}
  .col-12 {width: 100%;}
}
.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: 0px;
  margin-left: 0px;  
}
body {
  font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
  line-height: 1.8;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
}
h1 {
  color: #4a148c; /* 深紫色 */
  text-align: center;
  border-bottom: 3px solid #4a148c;
  padding-bottom: 10px;
  margin-top: 40px;
}
h2 {
  color: #352301;
  border-left: 5px solid #aa0000;
  padding-left: 15px;
  margin-top: 40px;
  background-color: #CCEDA9;
  padding-top: 5px;
  padding-bottom: 5px;
}
h3 {
  color: #7b1fa2;
  margin-top: 30px;
  font-weight: bold;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 5px;
}
p {
  margin-bottom: 15px;
  text-align: justify;
}
.highlight {
  font-weight: bold;
  color: #bf360c;
}
.intro-box {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
ul {
  list-style-type: square;
  padding-left: 20px;
}
a {
  color: #0000ff;
  text-decoration: none;
}		
a:hover {
  color: #AA0000;
  text-decoration: underline;
}
img {
  display:block;
  margin:auto;
  border-style: none;
}
label {
  display: inline-block;
  margin-bottom: 0.5rem;
}
input, button, select {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
fieldset {
  min-width: 0;
  padding: 0px;
  margin-top: 0px;
  border: 0;
}
#myfate {
  background-color: #EEE;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  height: 380px;
}
#datain {
  color: #000;
  font-weight: bold;
  text-align: center;
  width: 100%;
}
.mybirth {
  font-family: Arial, Helvetica, sans-serif;
}
.icity {
  color: #C00;
  font-weight: bold;
}
.myradio {
  width:1.0em;
  height:1.0em;	
}
#submitb {
  display: inline-block;
  padding: 12px 35px;
  background-color: #029F14;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#submitb:hover {
  color: #fff;
  font-size: 1.1rem;
  background-color: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}
.mcell {
  font-size: 18px;
  height: 40px;
  width: 50%;
  float: left;
  vertical-align: middle;
  text-align: center;
}
.ad {
  clear:both;
  margin-top: 0px;
  margin-bottom: 15px;
  height: 400px;
  margin-left:auto;
  margin-right:auto;  
}
.cnt { text-align: center; }
.tag-read {
  display: inline-block;
  background: #090;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 5px;
  font-family: sans-serif;
}

/* FAQ Section 容器 */
.constellation-faq {
    /*max-width: 800px;*/
    /*margin: 40px auto;*/
    /*padding: 20px;*/
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.constellation-faq h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.constellation-faq > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* 分類標題 */
.faq-category h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #5d4037; /* 大地色系，適合命理網站 */
    border-left: 4px solid #d4a373;
    padding-left: 10px;
    font-size: 1.2rem;
}

/* 折疊項目 */
.constellation-faq details {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.constellation-faq details[open] {
    border-color: #d4a373; /* 展開時的邊框色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 問題 (Summary) */
.constellation-faq summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: #444;
    list-style: none; /* 隱藏預設三角形 */
    position: relative;
    padding-right: 40px;
}

/* 自定義展開圖示 */
.constellation-faq summary::-webkit-details-marker {
    display: none;
}

.constellation-faq summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #d4a373;
    font-weight: normal;
}

.constellation-faq details[open] summary::after {
    content: '-';
}

.constellation-faq summary:hover {
    background-color: #fafafa;
    color: #AA3333;
}

/* 答案 (Answer) */
.constellation-faq .faq-answer, 
.constellation-faq div[itemprop="acceptedAnswer"] {
    padding: 0 15px 15px 15px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.constellation-faq details[open] div[itemprop="acceptedAnswer"] {
    border-top-color: #eee;
    padding-top: 15px;
}

