@charset "UTF-8";
/*
.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 18px;
}
textarea {
    max-height: 130px;
    max-width: 500px;
    font-size: 18px;
    color: rgb(43, 43, 77);    
}
body {
    background-color: #fef3df;
  }
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500&family=Noto+Serif+TC:wght@600&display=swap');

/* --- 全局樣式 --- */
:root {
    --primary-bg: #FDFCF7;
    --text-color: #333333;
    --accent-color: #A9907E;
    --light-gray: #f4f4f4;
}

* { 
	box-sizing: border-box; 
	margin: 0; 
	padding: 0; 
}
html { 
	scroll-behavior: smooth; 
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.8;
    background-color: var(--primary-bg);
    color: var(--text-color);
    padding-top: 80px; /* 為固定頂部導覽列預留空間 */
}

h1, h2, h3 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 頁面頂部導覽列 --- */
.page-header {
    background: rgba(253, 252, 247, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.back-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}
.back-link:hover {
    color: var(--accent-color);
}

.page-title {
    font-size: 1.5em;
    margin: 0;
    color: var(--accent-color);
}

/* --- 占卜功能區塊 --- */
.divination-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 25px; /* 調整與下方原則區塊的間距 */
}

/* ★★★ 新增：問卦原則區塊 ★★★ */
.rules-container {
    margin-bottom: 40px;
    text-align: left;
}
.rules-header {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: background-color 0.3s ease;
}
.rules-header:hover {
    background-color: #f9f9f9;
}
.rules-header::after { /* 這是 + 號圖示 */
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.4em;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}
.rules-container.active .rules-header::after { /* 變 - 號 */
    transform: rotate(45deg);
}
.rules-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: white;
    border-radius: 0 0 8px 8px;
}
.rules-container.active .rules-content {
    max-height: 500px; /* 展開高度 */
}
.rules-content ul {
    list-style-type: none; /* 移除預設的點點 */
    padding: 20px 25px 30px 25px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.rules-content li {
    margin-bottom: 15px;
}
.rules-content li strong {
    color: var(--accent-color);
}

/* --- 結果顯示卡片 --- */
.result-card {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    min-height: 200px;
    line-height: 2;
}

.result-card h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 25px;
}

/* --- 頁腳 --- */
.footer {
    padding: 40px 20px;
    font-size: 0.9em;
    color: #888;
    text-align: center;
}