/* =========================================
夜翼天文塔羅 - 全站共用核心樣式
========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg-dark: #0f0717;
--bg-panel: rgba(22, 11, 34, 0.6);
--rose-gold: #dca889;
--rose-gold-dim: #99735d;
--text-light: #f5eff7;
--blur-fx: blur(15px);
}

body {
font-family: "Optima", "PingFang HK", "SF Pro Display", "Microsoft JhengHei", serif;
background-color: var(--bg-dark);
background-image: radial-gradient(circle at 50% 0%, #2a1744 0%, var(--bg-dark) 70%);
color: var(--text-light);
display: flex; flex-direction: column; align-items: center;
min-height: 100vh; overflow-x: hidden; position: relative;
}

/* 背景星空特效 */
body::before {
content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: url('https://www.transparenttextures.com/patterns/stardust.png');
opacity: 0.25; pointer-events: none; z-index: -2; animation: twinkle 12s infinite alternate;
}
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 0.4; } }

.shooting-stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 2px; height: 80px; background: linear-gradient(to bottom, rgba(220,168,137,0), rgba(220,168,137,0.8)); border-radius: 50%; filter: drop-shadow(0 0 6px rgba(220,168,137,1)); animation: shooting 4s linear infinite; opacity: 0; }
.star:nth-child(1) { top: -80px; left: 20%; animation-delay: 1s; }
.star:nth-child(2) { top: -80px; left: 70%; animation-delay: 3.5s; height: 120px; animation-duration: 5s; }
.star:nth-child(3) { top: -80px; left: 40%; animation-delay: 6s; height: 60px; animation-duration: 3s; }
@keyframes shooting { 0% { transform: translateY(0) translateX(0) rotate(-45deg); opacity: 1; } 100% { transform: translateY(100vh) translateX(-100vh) rotate(-45deg); opacity: 0; } }

/* 🌟 Lucide Icon 設定 */
.lucide { width: 1.2em; height: 1.2em; vertical-align: text-bottom; margin-right: 4px; }
.mobile-menu-btn .lucide { width: 32px !important; height: 32px !important; }

/* 🌟 全站共用 Header & Sidebar */
header { width: 100%; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 5, 15, 0.85); backdrop-filter: var(--blur-fx); -webkit-backdrop-filter: var(--blur-fx); border-bottom: 1px solid rgba(220,168,137,0.15); position: sticky; top: 0; z-index: 100; }
.logo { color: var(--rose-gold); font-size: 18px; letter-spacing: 2px; text-decoration: none; display: flex; align-items: center; font-weight: bold; cursor: pointer; }
.desktop-nav { display: flex; gap: 25px; }
.desktop-nav a { color: var(--rose-gold-dim); text-decoration: none; font-size: 14px; transition: 0.3s; letter-spacing: 1px; display: flex; align-items: center; cursor: pointer; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--rose-gold); text-shadow: 0 0 10px rgba(220,168,137,0.3); }
.mobile-menu-btn { background: transparent; border: none; color: var(--rose-gold); cursor: pointer; display: none; }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s; }
.sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: linear-gradient(135deg, rgba(22, 11, 34, 0.95), rgba(15, 7, 23, 0.98)); border-left: 1px solid rgba(220,168,137,0.2); z-index: 1001; transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; padding: 25px; box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
.sidebar.open { right: 0; }
.sidebar-overlay.open { opacity: 1; visibility: visible; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 1px solid rgba(220,168,137,0.15); padding-bottom: 15px; }
.close-btn { background: transparent; border: none; color: var(--rose-gold-dim); cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: var(--rose-gold); transform: rotate(90deg); }
.sidebar-links { display: flex; flex-direction: column; gap: 20px; }
.sidebar-links a { color: var(--text-light); text-decoration: none; font-size: 16px; letter-spacing: 2px; display: flex; align-items: center; padding: 10px 15px; border-radius: 12px; transition: 0.3s; cursor: pointer; }
.sidebar-links a i { margin-right: 12px; color: var(--rose-gold-dim); }
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(220,168,137,0.1); color: var(--rose-gold); }

/* 🌟 全站共用 Announce Bar */
.announce-bar { width: 100%; background: linear-gradient(90deg, #5b427a, #3e265c, 0.8); color: #fff; padding: 12px 20px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.3s; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 99;}
.announce-bar:hover { background: linear-gradient(90deg, #6c4e90, #4b2e70, 0.9); }

/* 🌟 共用容器與 Hero Banner */
.container { max-width: 760px; width: 100%; padding: 30px 0px 0; text-align: center; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; }

.hero-banner { width: 100%; border: 1px solid rgba(220, 168, 137, 0.2); border-radius: 16px; padding: 50px 30px; margin-bottom: 30px; background: var(--bg-panel); backdrop-filter: var(--blur-fx); box-shadow: 0 10px 40px rgba(0,0,0,0.5); position: relative; }
.hero-banner h1 { color: var(--rose-gold); font-size: 32px; letter-spacing: 4px; margin-bottom: 8px; font-weight: 300; text-shadow: 0 0 15px rgba(220,168,137,0.3); }
.hero-banner h2 { font-size: clamp(10px, 3.2vw, 14px); white-space: nowrap; color: var(--text-light); font-weight: normal; margin-bottom: 25px; opacity: 0.8; letter-spacing: 0;}
.hero-banner .en-title { color: var(--rose-gold-dim); font-size: 13px; letter-spacing: 3px; margin-bottom: 25px; text-transform: uppercase; }

/* 共用按鈕與輸入框 */
.btn-primary { background: transparent; color: var(--rose-gold); border: 1px solid var(--rose-gold); padding: 15px 50px; font-size: 16px; border-radius: 30px; cursor: pointer; letter-spacing: 3px; transition: all 0.3s; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 400px; }
.btn-primary:hover { background: var(--rose-gold); color: var(--bg-dark); transform: translateY(-3px); box-shadow: 0 0 25px rgba(220,168,137,0.4); }

.pill-group { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pill-btn { background: rgba(0,0,0,0.2); color: var(--text-light); border: 1px solid rgba(153, 115, 93, 0.5); padding: 10px 18px; border-radius: 30px; font-size: 14px; cursor: pointer; transition: all 0.3s; letter-spacing: 1px; display: flex; align-items: center; justify-content: center;}
.pill-btn:hover { border-color: var(--rose-gold); background: rgba(220, 168, 137, 0.1); transform: translateY(-2px); }
.pill-btn.active { background: rgba(220, 168, 137, 0.15); border-color: var(--rose-gold); color: var(--rose-gold); box-shadow: 0 0 15px rgba(220,168,137,0.2); }

input[type="text"] { width: 100%; max-width: 500px; padding: 18px 20px; font-size: 16px; background: rgba(0,0,0,0.4); border: 1px solid rgba(220, 168, 137, 0.3); color: var(--rose-gold); border-radius: 12px; text-align: center; margin-bottom: 15px; transition: 0.3s all ease; }
input[type="text"]:focus { outline: none; border-color: var(--rose-gold); background: rgba(0,0,0,0.6); }

/* 🌟 進度條 Loader */
#loader { display: none; margin: 30px auto; width: 100%; }
.progress-bar-container { width: 100%; max-width: 250px; height: 6px; background: rgba(220,168,137,0.15); border-radius: 10px; margin: 0 auto 20px; overflow: hidden; position: relative; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--rose-gold-dim), var(--rose-gold)); border-radius: 10px; transition: width 0.4s ease; box-shadow: 0 0 10px rgba(220,168,137,0.5); }
.loading-text { color: var(--rose-gold); font-size: 14px; letter-spacing: 2px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* 🌟 結果顯示區與鎖定畫面 */
#result-box { width: 100%; margin: 40px 0 60px; padding: 40px; background: var(--bg-panel); backdrop-filter: var(--blur-fx); border: 1px solid rgba(220, 168, 137, 0.2); border-radius: 20px; text-align: left; display: none; line-height: 1.8; color: #f5eff7; position: relative; max-width: 800px;}
#resultTextData h3 { color: var(--rose-gold); font-size: 18px; margin: 30px 0 15px; border-bottom: 1px solid rgba(220,168,137,0.2); padding-bottom: 8px; }
#resultTextData h3:first-child { margin-top: 0; }
#resultTextData p { margin-bottom: 15px; }
#resultTextData ul { padding-left: 0; margin-bottom: 20px; list-style-type: none; }
#resultTextData li { margin-bottom: 10px; color: #e2d9e6; list-style-type: none; }
#resultTextData strong { color: var(--rose-gold); font-weight: bold; }

.locked-content { filter: blur(8px); opacity: 0.3; pointer-events: none; user-select: none; margin-top: 20px; min-height: 380px; }
.pay-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 80%; display: flex; align-items: center; justify-content: center; z-index: 10; background: linear-gradient(to bottom, rgba(15,7,23,0) 0%, rgba(15,7,23,0.95) 40%, rgba(15,7,23,1) 100%); border-radius: 0 0 20px 20px; }

.action-buttons { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; justify-content: flex-start; z-index: 5; position: relative; }
.copy-btn { background: transparent; border: 1px solid var(--rose-gold-dim); color: var(--rose-gold); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; transition: all 0.3s; }
.copy-btn:hover { background: rgba(220,168,137,0.15); border-color: var(--rose-gold); }

/* 🌟 全站共用 Footer */
footer { width: 100%; padding: 40px 20px; background: rgba(10,5,15,0.9); border-top: 1px solid rgba(220,168,137,0.1); font-size: 13px; color: var(--rose-gold-dim); text-align: center; margin-top: auto; }
footer a { color: var(--rose-gold-dim); text-decoration: none; margin: 0 12px; transition: color 0.3s; }
footer a:hover { color: var(--rose-gold); }

/* =========================================
🔮 塔羅首頁 (index.html) 專用樣式
========================================= */
.stats-badge { display: inline-flex; align-items: center; background: rgba(220, 168, 137, 0.08); color: var(--rose-gold); padding: 8px 18px; border-radius: 30px; font-size: 12px; letter-spacing: 1px; margin-bottom: 35px; border: 1px solid rgba(220, 168, 137, 0.2); }
.guided-section { margin-bottom: 25px; width: 100%; }
.section-title { font-size: 13px; color: var(--rose-gold-dim); margin-bottom: 15px; letter-spacing: 2px; }

.prompt-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.prompt-chips span { font-size: 12px; color: var(--rose-gold-dim); border: 1px solid rgba(220,168,137,0.2); padding: 5px 12px; border-radius: 15px; cursor: pointer; transition: all 0.2s; background: rgba(0,0,0,0.2); }
.prompt-chips span:hover { background: rgba(220,168,137,0.1); color: var(--rose-gold); border-color: var(--rose-gold); }
.refresh-chip { background: transparent !important; border: 1px dashed var(--rose-gold-dim) !important; padding: 5px 10px !important; display: flex; align-items: center; justify-content: center; }
.refresh-chip:hover { border-color: var(--rose-gold) !important; }
.refresh-chip:active i { transform: rotate(180deg); transition: 0.3s; }

.tier-toggle { display: flex; background: rgba(0,0,0,0.4); border-radius: 30px; margin: 25px auto 30px; padding: 5px; border: 1px solid rgba(220,168,137,0.3); max-width: 480px; width: 100%; }
.tier-btn { flex: 1; padding: 12px 10px; border-radius: 25px; border: none; background: transparent; color: var(--rose-gold-dim); cursor: pointer; transition: 0.3s; font-size: 14px; display: flex; justify-content: center; align-items: center;}
.tier-btn.active { background: rgba(220,168,137,0.15); color: var(--rose-gold); box-shadow: 0 0 15px rgba(220,168,137,0.2); border: 1px solid var(--rose-gold); font-weight: bold; }

.deck-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 520px; margin: 30px auto; width: 100%; }
.mini-card { width: calc((100% - 60px) / 6); aspect-ratio: 780 / 1490; height: auto; border-radius: 6px; cursor: pointer; transition: all 0.3s; background-image: url('../card-design/card-back.png'); background-size: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.mini-card:hover { transform: translateY(-15px) scale(1.15); box-shadow: 0 15px 30px rgba(220,168,137,0.6); z-index: 10; }
.mini-card.picked { opacity: 0; pointer-events: none; transform: translateY(-40px); }

.spread-container { display: none; justify-content: center; gap: 20px; margin: 30px auto; flex-wrap: wrap; width: 100%; }
.card-wrapper { display: flex; flex-direction: column; align-items: center; }
.card-position-label { font-size: 12px; letter-spacing: 2px; color: var(--rose-gold); margin-bottom: 12px; opacity: 0.8; }
.card-container { width: 120px; aspect-ratio: 780 / 1490; height: auto; perspective: 1000px; margin: 0 auto; }
.tarot-card { width: 100%; height: 100%; position: relative; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2); transform-style: preserve-3d; }
.tarot-card.flipped { transform: rotateY(180deg); }
@keyframes breathGlow { 0% { box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 5px rgba(220,168,137,0.2); } 50% { box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 25px rgba(220,168,137,0.7); } 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 5px rgba(220,168,137,0.2); } }
.tarot-card.flipped .card-front { animation: breathGlow 4s infinite alternate ease-in-out; animation-delay: 1.5s; }
.card-face { width: 100%; height: 100%; position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.card-back { background-image: url('../card-design/card-back.png'); background-size: cover; background-position: center; }
.card-front { background-color: transparent; background-size: cover; background-position: center; transform: rotateY(180deg); border: none; }
.card-front.reversed { transform: rotateY(180deg) rotateZ(180deg); }
.card-bottom-label { margin-top: 15px; font-size: 14px; color: var(--text-light); letter-spacing: 1px; opacity: 0; transition: opacity 0.8s ease; text-shadow: 0 0 8px rgba(220,168,137,0.4); }
.card-bottom-label.show { opacity: 1; }

.status-text { color: var(--rose-gold-dim); font-size: 15px; margin-bottom: 10px; min-height: 24px; letter-spacing: 1px; }
.upsell-box { margin-top: 40px; padding: 30px; background: rgba(220,168,137,0.05); border: 1px dashed var(--rose-gold-dim); border-radius: 16px; text-align: center; }

#restoreBanner { display: none; width: 100%; background: rgba(220,168,137,0.1); border: 1px solid var(--rose-gold-dim); padding: 12px 20px; border-radius: 12px; margin-bottom: 25px; align-items: center; justify-content: space-between; text-align: left; backdrop-filter: blur(10px); }

/* 🌟 歷史紀錄區 */
#historySection { width: 100%; max-width: 800px; padding: 20px 0; text-align: left; display: none; }
.history-card { background: var(--bg-panel); border: 1px solid rgba(220,168,137,0.2); border-radius: 16px; padding: 25px; margin-bottom: 20px; cursor: pointer; transition: 0.3s; }
.history-card:hover { border-color: var(--rose-gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid rgba(220,168,137,0.1); padding-bottom: 10px; }
.history-date { font-size: 12px; color: var(--rose-gold-dim); }
.history-tier { font-size: 11px; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--rose-gold); color: var(--rose-gold); }
.history-q { font-size: 16px; font-weight: bold; color: var(--text-light); margin-bottom: 10px; }
.history-spread { font-size: 13px; color: #aaa; }
.empty-history { text-align: center; padding: 50px 20px; color: var(--rose-gold-dim); }

/* 🌟 附屬組件 (每日一抽, 盲盒, Blog, FAQ) */
.blindbox-section { width: 100%; max-width: 760px; margin: 40px auto; padding: 0 20px; text-align: center; }
.blindbox-box { background: linear-gradient(135deg, rgba(30, 15, 45, 0.8), rgba(20, 10, 30, 0.9)); border: 1px solid rgba(220, 168, 137, 0.4); border-radius: 16px; padding: 40px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.blindbox-header h2 { color: var(--rose-gold); font-size: 22px; font-weight: normal; letter-spacing: 2px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.blindbox-header p { color: var(--rose-gold-dim); font-size: 13px; margin-bottom: 25px; line-height: 1.6; }

.daily-section { width: 100%; max-width: 900px; margin: 60px auto 20px; padding: 0 20px; text-align: center; }
.daily-box { background: linear-gradient(135deg, rgba(22, 11, 34, 0.8), rgba(42, 23, 68, 0.6)); border: 1px solid rgba(220, 168, 137, 0.3); border-radius: 16px; padding: 40px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.daily-header h2 { color: var(--rose-gold); font-size: 22px; font-weight: normal; letter-spacing: 2px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.daily-header p { color: var(--rose-gold-dim); font-size: 13px; margin-bottom: 25px; }
#dailyCardDisplay { display: none; flex-direction: column; align-items: center; margin-top: 20px; animation: fadeIn 1s; }
.daily-quote-text { margin-top: 20px; font-size: 16px; line-height: 1.6; color: #f5eff7; max-width: 500px; padding: 15px; border-left: 2px solid var(--rose-gold); background: rgba(220,168,137,0.05); text-align: left; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: linear-gradient(135deg, rgba(22, 11, 34, 0.95), rgba(15, 7, 23, 0.98)); border: 1px solid var(--rose-gold); border-radius: 16px; padding: 30px; text-align: center; max-width: 380px; width: 90%; position: relative; transform: translateY(20px); transition: 0.3s; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--rose-gold-dim); cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: var(--rose-gold); transform: rotate(90deg); }

.blog-section { width: 100%; max-width: 900px; margin: 60px auto 40px; padding: 0 20px; }
.blog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid rgba(220, 168, 137, 0.2); padding-bottom: 15px; }
.blog-header h2 { color: var(--rose-gold); font-size: 20px; font-weight: normal; letter-spacing: 2px; display: flex; align-items: center; }
.blog-header a { color: var(--rose-gold-dim); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.blog-header a:hover { color: var(--rose-gold); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--bg-panel); border: 1px solid rgba(220, 168, 137, 0.15); border-radius: 12px; overflow: hidden; transition: transform 0.3s; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: rgba(220, 168, 137, 0.4); }
.blog-img-box { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid rgba(220, 168, 137, 0.1); }
.blog-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img-box img { transform: scale(1.05); }
.blog-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-category { font-size: 11px; color: var(--rose-gold-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: inline-block; border: 1px solid var(--rose-gold-dim); padding: 2px 8px; border-radius: 10px; }
.blog-title { color: var(--text-light); font-size: 16px; margin-bottom: 10px; line-height: 1.4; font-weight: bold; }
.blog-excerpt { color: #aaa; font-size: 13px; line-height: 1.6; margin-bottom: 15px; flex: 1; }
.blog-link { color: var(--rose-gold); text-decoration: none; font-size: 13px; font-weight: bold; display: flex; align-items: center; }

.faq-section { width: 100%; max-width: 900px; margin: 40px auto 60px; padding: 0 20px; text-align: left; }
.faq-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(220, 168, 137, 0.2); padding-bottom: 15px; margin-bottom: 25px; }
.faq-header h2 { color: var(--rose-gold); font-size: 20px; font-weight: normal; letter-spacing: 2px; display: flex; align-items: center; }
.faq-header a { color: var(--rose-gold-dim); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.faq-header a:hover { color: var(--rose-gold); }
.faq-item { background: rgba(220,168,137,0.05); border: 1px solid rgba(220,168,137,0.1); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.faq-q { color: var(--rose-gold); font-size: 15px; font-weight: bold; margin-bottom: 8px; display: flex; align-items: center; }
.faq-a { color: #ccc; font-size: 14px; line-height: 1.6; }

/* =========================================
🌙 解夢館 (dream.html) 專用樣式
========================================= */
.dream-input-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto 25px; text-align: left; }
textarea { width: 100%; min-height: 180px; padding: 20px; font-size: 15px; line-height: 1.6; background: rgba(0,0,0,0.5); border: 1px solid rgba(220, 168, 137, 0.3); color: var(--rose-gold); border-radius: 12px; resize: none; transition: 0.3s all ease; font-family: inherit; }
textarea:focus { outline: none; border-color: var(--rose-gold); background: rgba(0,0,0,0.7); box-shadow: 0 0 15px rgba(220,168,137,0.1); }
textarea::placeholder { color: rgba(153, 115, 93, 0.5); }
.word-count { text-align: right; font-size: 12px; color: var(--rose-gold-dim); margin-top: 8px; }

/* 🌟 全站共用響應式 (Media Queries) */
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .desktop-nav { display: none; } .mobile-menu-btn { display: block; } }
@media (max-width: 600px) {
header { padding: 15px 20px; }
.deck-area { gap: 8px; max-width: 100%; }
.mini-card { width: calc((100% - 40px) / 6); }
.card-container { width: 95px; height: auto; aspect-ratio: 780 / 1490; }
#result-box { padding: 25px 20px; }
.blog-grid { grid-template-columns: 1fr; }
.action-buttons { justify-content: center; width: 100%; }
.blindbox-box { padding: 30px 20px; }
.hero-banner { padding: 40px 20px; }
.btn-primary { width: 100%; }
.tier-toggle { flex-direction: column; gap: 8px; border-radius: 15px; }
.tier-btn { border-radius: 10px; }
}

/* =========================================
   📜 文章與條款頁面共用樣式 (FAQ / Privacy / Terms / About)
   ========================================= */
.page-header { text-align: center; margin-bottom: 40px; }
.page-title { color: var(--rose-gold); font-size: 32px; letter-spacing: 4px; font-weight: 300; text-shadow: 0 0 15px rgba(220,168,137,0.3); margin-bottom: 10px; text-align: center; }
.page-subtitle { color: var(--text-light); font-size: 15px; opacity: 0.8; letter-spacing: 2px; text-transform: uppercase; text-align: center; margin-bottom: 50px; }

/* 玻璃質感文章框 */
.content-panel {
    background: var(--bg-panel); backdrop-filter: var(--blur-fx); -webkit-backdrop-filter: var(--blur-fx);
    padding: 50px 40px; border-radius: 20px; border: 1px solid rgba(220, 168, 137, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); text-align: justify;
}
.content-panel h2 { color: var(--rose-gold); font-size: 18px; margin: 35px 0 15px; font-weight: normal; display: flex; align-items: center; border-bottom: 1px dashed rgba(220,168,137,0.2); padding-bottom: 10px; }
.content-panel h2:first-child { margin-top: 0; }
.content-panel p { margin-bottom: 20px; color: #e5dee9; font-size: 14px; line-height: 1.8; }
.content-panel ul { margin-bottom: 25px; padding-left: 20px; list-style-type: none; }
.content-panel li { margin-bottom: 10px; position: relative; font-size: 14px; color: #e5dee9; line-height: 1.8; }
.content-panel li::before { content: '✧'; color: var(--rose-gold); position: absolute; left: -20px; }

/* 警告/強調區塊 */
.highlight-box {
    background: rgba(220, 168, 137, 0.05); border-left: 3px solid #ff6b6b; /* 預設紅色警告 */
    padding: 20px 25px; margin: 30px 0; border-radius: 0 8px 8px 0;
    color: #f5eff7; font-size: 14px; line-height: 1.8;
}
.highlight-box strong { color: #ff6b6b; }

/* 針對 Privacy 頁面的綠色安全提示 */
.highlight-box.safe { border-left-color: #7effa2; }
.highlight-box.safe strong { color: #7effa2; }

.last-updated { text-align: right; font-size: 12px; color: var(--rose-gold-dim); margin-top: 40px; font-style: italic; }
.cta-box { margin-top: 60px; text-align: center; padding: 40px 30px; background: var(--bg-panel); border: 1px solid rgba(220,168,137,0.2); border-radius: 16px; backdrop-filter: var(--blur-fx); }
.cta-box h3 { color: var(--rose-gold); font-size: 20px; margin-bottom: 15px; font-weight: normal; }

/* FAQ 手風琴 */
.faq-wrapper { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.faq-item-box { background: rgba(220, 168, 137, 0.05); border: 1px solid rgba(220, 168, 137, 0.2); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-item-box.active { border-color: var(--rose-gold); background: rgba(220, 168, 137, 0.08); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.faq-question { width: 100%; text-align: left; background: transparent; border: none; padding: 20px 25px; color: var(--text-light); font-size: 16px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: color 0.3s; font-family: inherit; letter-spacing: 1px; }
.faq-item-box.active .faq-question { color: var(--rose-gold); }
.faq-icon { transition: transform 0.3s ease; color: var(--rose-gold-dim); }
.faq-item-box.active .faq-icon { transform: rotate(180deg); color: var(--rose-gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.4s ease; background: rgba(0,0,0,0.2); padding: 0 25px; font-size: 14px; line-height: 1.8; color: #ccc; }
.faq-item-box.active .faq-answer { max-height: 500px; padding: 0 25px 25px; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--rose-gold-dim); }

@media (max-width: 600px) {
    .page-title { font-size: 26px; }
    .content-panel { padding: 30px 20px; }
    .faq-question { font-size: 15px; padding: 18px 20px; }
    .faq-answer { font-size: 14px; }
    .faq-item-box.active .faq-answer { padding: 0 20px 20px; }
}

/* =========================================
   📰 星際專欄 (Blog 文章閱讀頁) 專用樣式
   ========================================= */
.article-container { max-width: 760px; width: 100%; padding: 40px 20px 80px; flex: 1 0 auto; margin: 0 auto; }
.article-hero { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 16px; margin-bottom: 30px; background-size: cover; background-position: center; border: 1px solid rgba(220,168,137,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.article-header { text-align: center; margin-bottom: 40px; padding: 0 20px; }

.hero-category { display: inline-block; font-size: 12px; color: #b19cd0; border: 1px solid #8c78a5; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.article-title { font-size: 32px; color: #fff; line-height: 1.4; margin-bottom: 15px; font-weight: normal; }
.article-meta { color: var(--rose-gold-dim); font-size: 13px; display: flex; justify-content: center; gap: 20px; opacity: 0.8; }

.article-content { background: var(--bg-panel); backdrop-filter: var(--blur-fx); -webkit-backdrop-filter: var(--blur-fx); padding: 45px; border-radius: 20px; border: 1px solid rgba(220, 168, 137, 0.1); font-size: 16px; color: #e5dee9; text-align: justify; line-height: 1.8; }
.article-content h2 { color: var(--rose-gold); font-size: 22px; margin: 45px 0 20px; font-weight: normal; display: flex; align-items: center; border-bottom: 1px solid rgba(220,168,137,0.15); padding-bottom: 12px; }
.article-content h3 { color: var(--text-light); font-size: 18px; margin: 35px 0 15px; font-weight: normal; display: flex; align-items: center; }
.article-content h3 .lucide { color: var(--rose-gold-dim); margin-right: 10px; }
.article-content p { margin-bottom: 22px; }
.article-content ul { margin-bottom: 30px; list-style: none; padding-left: 20px; }
.article-content li { margin-bottom: 12px; position: relative; }
.article-content li::before { content: '✧'; color: var(--rose-gold); position: absolute; left: -25px; font-size: 12px; }

.blockquote { background: rgba(220, 168, 137, 0.05); border-left: 2px solid var(--rose-gold); padding: 25px; margin: 40px 0; font-style: italic; color: var(--rose-gold); border-radius: 0 12px 12px 0; }

/* 專屬文章底部 CTA */
.article-cta-box { margin-top: 60px; text-align: center; padding: 45px 30px; background: rgba(30, 17, 49, 0.8); border: 1px solid var(--rose-gold); border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.article-cta-box h3 { color: var(--rose-gold); font-size: 20px; margin-bottom: 15px; font-weight: normal; }
.article-cta-box p { color: var(--text-light); font-size: 15px; margin-bottom: 25px; opacity: 0.9; }

@media (max-width: 600px) {
    .article-container { padding: 25px 15px; }
    .article-hero { padding: 25px; } 
    .article-title { font-size: 24px; }
    .article-content { padding: 30px 20px; font-size: 15px; }
}

/* =========================================
   十二星座運勢卡片 (Blog 文章專用)
   ========================================= */
.zodiac-grid { 
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; 
}
.zodiac-card { 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(220, 168, 137, 0.2); 
    padding: 25px; border-radius: 12px; transition: all 0.3s ease; 
}
.zodiac-card:hover { 
    border-color: var(--rose-gold); transform: translateY(-3px); 
    background: rgba(220, 168, 137, 0.08); box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
}
.zodiac-card h4 { 
    color: var(--rose-gold); font-size: 18px; margin-bottom: 15px; 
    display: flex; align-items: center; 
}
.zodiac-card p { 
    font-size: 15px; margin-bottom: 0; color: #ccc; line-height: 1.8; 
}

/* =========================================
   教學卡片與範例 (Blog 文章專用)
   ========================================= */
.tip-card { 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(220, 168, 137, 0.2); 
    padding: 25px; border-radius: 12px; margin-bottom: 25px; 
}
.tip-card h4 { 
    color: var(--rose-gold); font-size: 18px; margin-bottom: 12px; 
    display: flex; align-items: center; 
}
.tip-card h4 .lucide { margin-right: 10px; width: 20px; }
.example-box { 
    margin-top: 15px; padding: 15px; background: rgba(220, 168, 137, 0.05); 
    border-radius: 8px; font-size: 14px; 
}
.bad-ex { color: #ff7e7e; margin-bottom: 8px; }
.good-ex { color: #7effa2; }

/* =========================================
   📚 星際專欄目錄 (Blog Index) 專用樣式
   ========================================= */
.category-filter { margin-bottom: 40px; width: 100%; display: flex; justify-content: center; }

/* 覆蓋首頁的部分 Blog Grid 樣式，使其適應目錄頁 */
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100%;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}
