/* 2000s 復古部落格風格 - 白藍粉配色 */

/* ===== 網站字型（跟著網站一起上傳，訪客不用自己安裝） =====
   名字故意取得跟電腦裡安裝的不一樣，這樣在自己電腦預覽時，
   看到的就是網站真正載入的字型，不會被本機字型「騙」到。 */
@font-face {
    font-family: "Site Swei";          /* 獅尾圓體 */
    src: url("SweiGothicCJKtc-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Site Naisho";        /* Naisho Moji */
    src: url("NaishoMoji-Regular.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Site Naskh";         /* Adobe Naskh Medium */
    src: url("Adobe Naskh Medium.ttf") format("truetype");
    font-display: swap;
}

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

body {
    background: #f5f8ff url('cover.png');
    background-size: cover;  /* 或改成 contain, 看你想要的效果 */
    background-attachment: fixed;  /* 固定背景不滾動 */
    background-position: center;
    font-family: "Site Swei", "Site Naisho", "PMingLiU", sans-serif;

    color: #2c3e50;
    font-size: 12px;
    line-height: 1.8;
}
h1 {
    font-family: 'UD デジタル 教科書体 NK', sans-serif;  /* 改成你想要的字體 */
}

/* ===== 防止圖片另存 =====
   pointer-events: none → 滑鼠/手指「穿過」圖片，右鍵或長按只會點到後面的空白，
   不會跳出「另存圖片」。-webkit-touch-callout 是擋 iPhone 長按選單。
   想開放下載的圖片（例如數位特典），在 <body> 或圖片外層加 class="allow-save" */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.allow-save img {
    -webkit-user-drag: auto;
    user-select: auto;
    -webkit-user-select: auto;
    -webkit-touch-callout: default;
    pointer-events: auto;
}
.subtitle {
    font-family: "Site Naskh", serif;
    font-size: 15px !important;
}
.container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border: 2px solid #b8d4f1;
    box-shadow: 3px 3px 0px rgba(184, 212, 241, 0.3);
}

/* Header */
header {
    background: linear-gradient(to bottom, #e8f2ff 0%, #ffffff 100%);
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 3px double #b8d4f1;
}

header h1 {
    font-size: 28px;
    color: #5b9bd5;
    margin-bottom: 5px;
    letter-spacing: 2px;
    white-space: normal;  /* 加這行 */
    display: block;
}
    
header .subtitle {
    font-size: 11px;
    color: #ff99bb;
    letter-spacing: 1px;
}

/* 標題可以點回首頁 */
.site-title,
.site-title:visited {
    color: inherit;
    text-decoration: none;
}

.site-title:hover {
    color: #ff99bb;
}

/* 標題下方的頁面名稱（開發日誌 / STORY / STAFF ...） */
.page-label {
    font-size: 20px;
    color: #5b9bd5;
    margin: 0;
    font-family: 'UD デジタル 教科書体 NK', sans-serif;
}

.header-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff99bb, transparent);
    margin-top: 15px;
}

/* Layout */
.main-layout {
    display: flex;
    min-height: 500px;
}

.sidebar {
    width: 200px;
    background: #fafcff;
    border-right: 1px solid #e0ebf5;
    padding: 20px 15px;
}

.content {
    flex: 1;
    padding: 30px;
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #d0e0f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar h3 {
    font-size: 12px;
    color: #5b9bd5;
    margin-bottom: 10px;
    letter-spacing: 1px;
    border-left: 3px solid #ff99bb;
    padding-left: 8px;
}

.sidebar p {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.menu {
    list-style: none;
}

.menu li {
    margin: 8px 0;
}

.menu a {
    color: #5b9bd5;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.menu a:hover {
    color: #ff99bb;
    text-decoration: underline;
}

.menu a:visited {
    color: #8b7db8;
}

/* PLAY GAME 醒目顯示 */
.menu a.menu-highlight,
.menu a.menu-highlight:visited {
    color: #ff99bb;
    font-weight: bold;
}

/* 目前所在頁面 */
.menu a.current,
.menu a.current:visited {
    color: #ff69b4;
    font-weight: bold;
}

.menu a.current::before {
    content: "♡ ";
}

.counter {
    text-align: center;
    background: #f0f7ff;
    padding: 15px 10px;
    border: 1px solid #d0e0f0;
}

.visitor-count {
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #5b9bd5;
    font-weight: bold;
    letter-spacing: 2px;
}

.marquee {
    font-size: 11px;
    color: #ff99bb;
}

/* Category Filter */
.category-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fbff;
    border: 1px solid #e0ebf5;
    text-align: center;
}

.filter-label {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.cat-btn {
    background: white;
    border: 1px solid #b8d4f1;
    color: #5b9bd5;
    padding: 5px 12px;
    margin: 0 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-btn:hover {
    background: #e8f2ff;
}

.cat-btn.active {
    background: #5b9bd5;
    color: white;
    border-color: #5b9bd5;
}

/* Articles */
.articles {
    min-height: 400px;
}

.article-item {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0ebf5;
    background: white;
    transition: all 0.2s;
}

.article-item:hover {
    background: #fafcff;
    border-color: #b8d4f1;
}

.article-item.locked {
    background: #f9f9fb;
    opacity: 0.8;
}

.article-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    font-family: "Courier New", monospace;
}

.article-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #5b9bd5;
}

.lock-icon {
    font-size: 14px;
    margin-right: 5px;
}

.article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0ebf5;
}

.page-link {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #b8d4f1;
    color: #5b9bd5;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #e8f2ff;
}

.page-link.active {
    background: #5b9bd5;
    color: white;
    border-color: #5b9bd5;
}

/* Footer */
footer {
    background: #f8fbff;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #e0ebf5;
    font-size: 11px;
    color: #999;
}

.footer-note {
    margin-top: 5px;
    color: #ff99bb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #b8d4f1;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff99bb;
}

.modal h2 {
    color: #5b9bd5;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 15px;
    color: #666;
}

.modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #b8d4f1;
    margin-bottom: 15px;
    font-size: 14px;
}

.modal button {
    background: #5b9bd5;
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.modal button:hover {
    background: #4a8bc2;
}

#unlockMessage {
    margin-top: 15px;
    font-size: 13px;
}

#unlockMessage.success {
    color: #5b9bd5;
}

#unlockMessage.error {
    color: #ff99bb;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0ebf5;
    }
    
    .content {
        padding: 20px;
    }
    
    .container {
        margin: 10px;
    }
}

/* 復古小裝飾 */
.article-item::before {
    content: "🎸🪨";
    color: #ff99bb;
    margin-right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.article-item:hover::before {
    opacity: 0.3;
}

.qa-content {
    padding: 20px;
}

.qa-item {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(91, 155, 213, 0.05);
    border-left: 4px solid #5b9bd5;
    border-radius: 5px;
}

.question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.q-mark {
    font-size: 24px;
    font-weight: bold;
    color: #ff69b4;
    margin-right: 15px;
    flex-shrink: 0;
}

.question p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.6;
}

.answer {
    display: flex;
    align-items: flex-start;
}

.a-mark {
    font-size: 24px;
    font-weight: bold;
    color: #5b9bd5;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
}

.answer-text p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #2c3e50;
}

.answer-text p:last-child {
    margin-bottom: 0;
}

.answer-text .note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* 響應式 */
@media (max-width: 768px) {
    .qa-item {
        padding: 15px;
    }
    
    .q-mark, .a-mark {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .question p {
        font-size: 14px;
    }
}
/* Q&A 提問按鈕 */
.qa-submit-box {
    text-align: center;
    padding: 30px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(91, 155, 213, 0.1));
    border: 2px dashed #ff69b4;
    border-radius: 10px;
}

.qa-submit-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.8;
}

.qa-submit-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
}

.qa-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}
/* ===== 更新履歷頁面樣式 ===== */
/* ⭐ 把這段加到你的 style.css 最下面 */

.updates-content {
    padding: 20px;
}

.update-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 4px solid #5b9bd5;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.update-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.version-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #5b9bd5;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
}

/* 主要版本(1.0.0, 2.0.0)用特殊顏色 */
.version-tag.major {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
}

/* 初始版本(0.1.0)用另一種顏色 */
.version-tag.initial {
    background: #9370db;
}

.update-date {
    color: #666;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.8;
    color: #2c3e50;
}

.update-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff69b4;
    font-weight: bold;
}

/* 響應式 */
@media (max-width: 768px) {
    .update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .update-item {
        padding: 15px;
    }
    
    .update-list li {
        font-size: 14px;
    }
}

/* ===== 利用規約頁面樣式 ===== */
/* ⭐ 把這段加到你的 style.css 最下面 */

.terms-content {
    padding: 20px;
    max-width: 800px;
}

.terms-header {
    margin-bottom: 30px;
    text-align: center;
}

.terms-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.terms-intro {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.terms-section {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}


.star-mark {
    color: #ff69b4;
    font-size: 12px;
}
.star-mark2 {
    color: #5b9bd5;
    font-size: 12px;
}

.section-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    line-height: 1.8;
    color: #2c3e50;
}

/* 允許範圍 - 綠色勾勾 */
.terms-list.allow li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
}

/* 禁止事項 - 紅色叉叉 */
.terms-list.forbid li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: 20px;
    font-weight: bold;
}

.disclaimer {
    color: #2c3e50;
    line-height: 1.8;
    margin-top: 10px;
}

.social-link {
    color: #5b9bd5;
    text-decoration: none;
    font-weight: bold;
}

.social-link:hover {
    color: #ff69b4;
    text-decoration: underline;
}

/* 響應式 */
@media (max-width: 768px) {
    .terms-content {
        padding: 15px;
    }
    
    .terms-section {
        padding: 15px;
    }
    
    .terms-header h2 {
        font-size: 20px;
    }
    
    .terms-list li {
        font-size: 14px;
        padding-left: 30px;
    }
}

/* 角色網格容器 */
.character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 兩欄平分 */
    gap: 20px;
    margin-bottom: 30px;
}

/* 角色卡片 */
.character-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    text-align: center;  /* 全部置中 */
}

/* 固定圖片尺寸 */
.character-img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    border: 2px solid #b8d4f1;
    margin: 0 auto 15px auto;  /* 圖片置中,下方留白 */
    display: block;
}

.character-info h3 {
    font-size: 20px;
    color: #5b9bd5;
    margin-bottom: 10px;
}

.character-quote {
    display: block;  /* 台詞換行 */
    font-size: 13px;
    font-weight: normal;
    color: #5b9bd5;
    font-style: italic;
    margin-top: 5px;
}

.character-info p {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 12.5px;
}

/* 手機版改成單欄 */
@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;  /* 手機變單欄 */
    }
}

/* ===== 文章頁面樣式 ===== */
/* ⭐ 把這段加到你的 style.css 最下面 */

.article-content {
    padding: 20px;
    max-width: 800px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0ebf5;
}

.article-main-title {
    font-size: 24px;
    color: #2c3e50;
    margin-top: 10px;
}

.article-body {
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

/* YouTube Playlist 容器 */
.playlist-container {
    margin: 30px 0;
    border-radius: 5px;
    overflow: hidden;
}

.playlist-container iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    border: 2px solid #b8d4f1;
}

/* 歌單說明區 */
.playlist-notes {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05), rgba(91, 155, 213, 0.05));
    border-left: 4px solid #ff99bb;
    border-radius: 5px;
}

.playlist-notes h3 {
    color: #5b9bd5;
    margin-bottom: 15px;
    font-size: 18px;
}

.playlist-notes p {
    line-height: 1.8;
    color: #2c3e50;
}

/* 返回連結 */
.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0ebf5;
}

.back-link a {
    color: #5b9bd5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #ff99bb;
    text-decoration: underline;
}

/* 響應式 */
@media (max-width: 768px) {
    .article-content {
        padding: 15px;
    }
    
    .article-main-title {
        font-size: 20px;
    }
    
    .playlist-container iframe {
        height: 300px;
    }
}

/* 懸浮按鈕組 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #b8d4f1;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 回首頁按鈕 - 顯示主視覺圖片 */
.home-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 回到頂部按鈕 */
.top-btn {
    font-size: 24px;
    color: #5b9bd5;
    font-weight: bold;
}

/* 手機版調整 */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
    }
    
    .top-btn {
        font-size: 20px;
    }
}