/* =========================================
   全站共用主題與顏色設定
   ========================================= */
   :root {
    --primary-color: #FFFFFF;
    --accent-color: #DDA76A; 
    --bg-color: #161616;     
    --text-muted: #A0A0A0;   
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* --- 導覽列 Navbar --- */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { height: 40px; width: auto; border-radius: 4px; }
.logo-text { font-family: 'Noto Serif TC', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--primary-color); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* =========================================
   首頁專屬區塊樣式
   ========================================= */
.announcement { text-align: center; padding: 40px 20px 20px; cursor: pointer; user-select: none; }
.announcement h3 { font-size: 1.2rem; font-weight: 700; color: var(--accent-color); transition: opacity 0.3s;}
.announcement:active { opacity: 0.7; }

.hero { display: flex; align-items: center; gap: 60px; padding: 40px 20px 80px 20px; }
.hero-image { flex: 1; max-width: 450px; }
.hero-image img { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-text { flex: 1; }
.hero-text h1 { font-family: 'Noto Serif TC', serif; font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; }
.hero-text .subtitle { font-size: 1.4rem; font-weight: 500; color: var(--accent-color); margin-bottom: 30px; }
.hero-text p { font-size: 1.05rem; margin-bottom: 20px; color: var(--text-muted); text-align: justify; }

.primary-btn {
    display: inline-block; margin-top: 20px; padding: 15px 40px; background-color: transparent;
    color: var(--accent-color); border: 2px solid var(--accent-color); text-decoration: none;
    font-size: 1.1rem; font-weight: 700; border-radius: 4px; transition: all 0.3s ease;
}
.primary-btn:hover { background-color: var(--accent-color); color: #000; }
.center-btn { text-align: center; margin: 40px 0 80px 0; }

.section-title { font-family: 'Noto Serif TC', serif; text-align: center; font-size: 2.5rem; font-weight: 700; margin: 80px 0 60px 0; color: var(--primary-color); }
.section-divider { border: 0; height: 1px; background-color: rgba(255, 255, 255, 0.15); width: 100%; max-width: 1200px; margin: 40px auto 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; margin-bottom: 40px; }
.service-item { display: flex; flex-direction: column; }
.service-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.service-header svg { color: var(--accent-color); width: 32px; height: 32px; flex-shrink: 0; }
.service-header h3 { font-family: 'Noto Serif TC', serif; color: var(--primary-color); font-size: 1.4rem; font-weight: 600; margin: 0; }
.service-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.9; margin: 0; text-align: justify; }

.testimonials { padding-bottom: 40px; }
.masonry-grid { column-count: 5; column-gap: 20px; margin-bottom: 40px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; transition: transform 0.3s ease; }
.masonry-item:hover { transform: scale(1.03); }
.masonry-item img { width: 100%; display: block; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.faq-list { max-width: 800px; margin: 0 auto; }
details { background-color: #222; margin-bottom: 15px; border-radius: 6px; border-left: 4px solid var(--accent-color); }
summary { padding: 20px; cursor: pointer; font-size: 1.15rem; font-weight: 500; color: var(--primary-color); list-style: none; position: relative; transition: color 0.3s; }
summary:hover { color: var(--accent-color); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent-color); }
details[open] summary::after { content: '-'; }
details p { padding: 0 20px 20px 20px; color: var(--text-muted); font-size: 1rem; margin: 0; text-align: justify; }

.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto 40px auto; }
.social-card { text-decoration: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s ease; }
.social-card:hover { transform: translateY(-5px); }
.social-img-wrapper { width: 250px; height: 250px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; background-color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.social-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.social-card p { font-size: 1rem; line-height: 1.8; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 30px 0; text-align: center; color: #666; font-size: 0.9rem; margin-top: 40px; }

/* =========================================
   彩蛋後台登入框樣式 (Admin Modal)
   ========================================= */
.admin-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.admin-modal-content {
    background: #1a1a1a; padding: 40px; border-radius: 8px; border-top: 4px solid var(--accent-color);
    width: 90%; max-width: 600px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); max-height: 90vh; overflow-y: auto;
}
.admin-modal-content h3 { color: var(--accent-color); margin-bottom: 30px; font-family: 'Noto Serif TC', serif; font-size:1.8rem; text-align: center;}
.admin-section { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #333; }
.admin-section h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.1rem;}
.admin-input {
    width: 100%; padding: 15px; margin-bottom: 15px; background: #222; border: 1px solid #444;
    color: #fff; border-radius: 4px; font-family: inherit; font-size: 1.05rem;
}
.admin-input:focus { outline: none; border-color: var(--accent-color); }
textarea.admin-input { resize: vertical; min-height: 100px; }
.admin-actions { display: flex; justify-content: flex-end; }
.admin-btn { padding: 12px 25px; border-radius: 4px; cursor: pointer; font-weight: bold; border: none; transition: 0.3s; font-size: 1rem;}
.btn-cancel { background: transparent; color: #888; border: 1px solid #444;}
.btn-cancel:hover { color: #fff; border-color: #888;}
.btn-save { background: var(--accent-color); color: #000; }
.btn-save:hover { background: #c59156; }

/* =========================================
   排盤頁面與內頁樣式
   ========================================= */
.chart-hero { text-align: center; padding: 80px 20px 60px 20px; max-width: 800px; margin: 0 auto; }
.serif-title { font-family: 'Noto Serif TC', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 30px; color: var(--accent-color); letter-spacing: 2px; }
.chart-hero p { color: var(--primary-color); font-size: 1.05rem; line-height: 2; margin-bottom: 10px; }
.hollow-btn { display: inline-block; margin-top: 40px; padding: 15px 40px; border: 1px solid var(--accent-color); color: var(--primary-color); text-decoration: none; font-size: 1.05rem; letter-spacing: 1px; transition: all 0.3s ease; }
.hollow-btn:hover { background-color: rgba(221, 167, 106, 0.1); color: var(--accent-color); }
.full-width-divider { width: 100%; height: 6px; background-color: #FFFFFF; margin: 20px 0 60px 0; }
.chart-features { text-align: center; padding: 20px 20px 80px 20px; max-width: 1000px; margin: 0 auto; }
.accent-text { color: var(--accent-color); font-size: 1.6rem; margin-bottom: 50px; }
.features-grid-minimal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 60px; }
.feature-item-minimal h4 { color: var(--primary-color); font-size: 1.1rem; font-weight: 500; margin-bottom: 20px; letter-spacing: 1px; }
.feature-item-minimal p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.chart-note { color: #666; font-size: 0.9rem; }

.inner-page-header { text-align: center; padding: 60px 20px 20px 20px; }
.inner-page-header h1 { font-family: 'Noto Serif TC', serif; font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; }
.inner-content { max-width: 900px; margin: 0 auto; padding: 20px; font-size: 1.05rem; color: var(--text-muted); line-height: 1.9;}
.inner-content p { margin-bottom: 20px; }
.inner-content strong { color: var(--primary-color); }
.course-card { background-color: #222; border-left: 4px solid var(--accent-color); padding: 30px; margin-bottom: 30px; border-radius: 0 8px 8px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.course-card h3 { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 15px; }
.course-card ul { margin-left: 20px; margin-bottom: 15px; }
.course-card li { margin-bottom: 10px; }
.article-category { font-family: 'Noto Serif TC', serif; font-size: 1.6rem; color: var(--primary-color); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin: 40px 0 20px 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.article-btn { display: block; background-color: #222; color: var(--text-muted); text-decoration: none; padding: 15px 20px; border-radius: 6px; border: 1px solid #333; transition: all 0.3s; font-size: 0.95rem; }
.article-btn:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateX(5px); }
blockquote { border-left: 4px solid var(--accent-color); background-color: #222; padding: 20px; margin: 30px 0; font-style: italic; border-radius: 0 6px 6px 0; }
blockquote a { color: var(--accent-color); }

@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .masonry-grid { column-count: 4; } }
@media (max-width: 900px) { .masonry-grid { column-count: 3; } .social-grid { grid-template-columns: 1fr; } .features-grid-minimal { grid-template-columns: 1fr; gap: 40px;} }
@media (max-width: 768px) { .hero { flex-direction: column; text-align: center; } .hero-image { margin: 0 auto; } .nav-container { flex-direction: column; justify-content: center; height: auto; padding: 15px 0; gap: 15px; } .nav-links { flex-wrap: wrap; justify-content: center; } .services-grid { grid-template-columns: 1fr; gap: 50px; } .masonry-grid { column-count: 2; } }