/* === 根變數：主題色盤 === */
:root {
    --bg-gradient-start: #faf0fa;
    --bg-gradient-end: #f3e6f8;
    --card-bg: rgba(255, 248, 250, 0.85);
    --blur-amount: 12px;
    --primary-text: #3b2a2f;
    --secondary-text: #6b4e5e;
    --accent-pink: #f9a8d4;
    --accent-purple: #c084fc;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--primary-text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
}

/* ===== 漂浮裝飾 ===== */
.deco-emoji {
    position: fixed;
    font-size: 1.8rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.deco-1 {
    top: 5%;
    left: 2%;
    animation-duration: 14s;
}

.deco-2 {
    bottom: 8%;
    right: 3%;
    animation-duration: 18s;
    font-size: 2.2rem;
}

.deco-3 {
    top: 20%;
    right: 5%;
    animation-duration: 16s;
}

.deco-4 {
    bottom: 15%;
    left: 4%;
    animation-duration: 20s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== 導航列 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 245, 250, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 0.7rem 1.8rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: sticky;
    top: 0.75rem;
    z-index: 20;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #a21caf;
}

.nav-brand i {
    margin-right: 0.4rem;
    color: #d946ef;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-text);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #a21caf;
    border-bottom-color: #f472b6;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a21caf;
    z-index: 21;
}

/* 手機版導航 */
@media (max-width: 680px) {
    body {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: rgba(255, 245, 250, 0.98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-radius: 32px;
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        border: 1px solid white;
        z-index: 100;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li a {
        justify-content: center;
        padding: 0.6rem 0;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: block;
    }

    .navbar {
        overflow: visible;
    }
}

/* ===== 英雄區域 ===== */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    background: var(--card-bg);
    border-radius: 48px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.hero:hover {
    transform: scale(1.01);
}

.avatar {
    width: 130px;
    height: 130px;
    background: none;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    padding: 4px;
    background: linear-gradient(135deg, #c084fc, #f472b6);
    box-shadow: var(--shadow-sm);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.avatar i {
    font-size: 4rem;
    color: #c084fc;
}

.greeting {
    font-size: 1.1rem;
    background: rgba(255, 240, 245, 0.7);
    display: inline-block;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    font-weight: 500;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #d946ef, #f472b6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.h1-dot {
    background: none;
    color: #a855f7;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== About 區塊 ===== */
.about-section {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 40px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #a21caf;
    border-left: 6px solid #f472b6;
    padding-left: 1rem;
}

.about-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-left {
    flex: 1.2;
    min-width: 240px;
}

.about-right {
    flex: 1.8;
    min-width: 260px;
}

.profile-intro {
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #be185d;
    margin-bottom: 0.5rem;
}

.profile-name i {
    margin-right: 0.5rem;
    color: #c084fc;
}

.nickname {
    font-size: 1rem;
    font-weight: normal;
    background: #fce7f3;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    margin-left: 0.5rem;
    color: #a21caf;
}

.profile-desc {
    color: var(--primary-text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.okayu-color {
    color: #c084fc;
    font-weight: 700;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.stat-badge {
    background: rgba(255, 240, 245, 0.7);
    border-radius: 60px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b4e5e;
}

.stat-badge i {
    color: #d946ef;
    width: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 0.8rem 1rem;
    transition: 0.2s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 1.8rem;
    color: #c084fc;
    margin-top: 0.2rem;
}

.info-item h3,
.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #be185d;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.4;
}

/* ===== 通用卡片 ===== */
.card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 32px;
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.card:hover {
    transform: translateY(-6px);
    background: rgba(255, 252, 250, 0.92);
}

.card h2,
.card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a21caf;
}

.card h2 i,
.card h3 i {
    font-size: 1.5rem;
    color: #d946ef;
}

.quote-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.quote-author {
    text-align: right;
    font-size: 0.85rem;
    color: #7c5a6b;
}

/* ===== 看板表格 ===== */
.kanban-table {
    width: 100%;
    overflow-x: auto;
}

.kanban-header,
.kanban-row {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(249, 168, 212, 0.4);
}

.kanban-header {
    font-weight: 700;
    color: #a21caf;
    border-bottom: 2px solid #f472b6;
    margin-bottom: 0.2rem;
}

.col-date {
    flex: 0 0 95px;
    font-weight: 600;
}

.col-tag {
    flex: 0 0 70px;
}

.col-content {
    flex: 1;
}

.tag-update {
    display: inline-block;
    background: #fce7f3;
    color: #be185d;
    padding: 0.2rem 0.6rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 680px) {

    .kanban-header,
    .kanban-row {
        flex-wrap: wrap;
    }

    .col-date,
    .col-tag {
        flex: 0 0 auto;
        margin-right: 0.8rem;
    }

    .col-content {
        margin-top: 0.3rem;
        width: 100%;
    }
}

/* ===== update.html 專用 ===== */
.full-table-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 32px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}

.back-home {
    text-align: center;
    margin: 2rem 0;
}

/* ===== 頁面標題 ===== */
.page-header {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.page-header h1, .page-header h2 {
    font-size: 2rem;
    color: #a21caf;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--secondary-text);
}

/* ===== 部落格樣式 ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 32px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: auto;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 252, 250, 0.92);
}

.blog-image {
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-size: 3rem;
    color: #c084fc;
    border-bottom: 1px solid rgba(249, 168, 212, 0.3);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #a21caf;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    border-bottom: 1px dashed #f9a8d4;
    padding-bottom: 0.5rem;
}

.blog-meta i {
    margin-right: 0.2rem;
    color: #d946ef;
}

.blog-summary {
    color: var(--primary-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

/* ===== 放浪團 Blog ===== */
.group-blog {
    margin: 2rem 0;
}

.group-blog-lead {
    color: var(--secondary-text);
    margin: -0.5rem 0 1rem;
}

.group-post .blog-title {
    font-size: 1.15rem;
}

.group-post .blog-meta {
    flex-wrap: wrap;
    row-gap: 0.3rem;
}

.blog-image.group-post-image {
    display: block;
    padding: 0;
    height: 200px;
}

.blog-image.group-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-post-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed #f9a8d4;
    border-radius: 24px;
    padding: 1.5rem;
}

/* ===== 彩蛋與按鈕 ===== */
.secret-section {
    text-align: center;
    margin: 1rem 0 2rem;
}

.clickable-paw {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 0.6rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #fbcfe8;
    color: #a21caf;
}

.clickable-paw:hover {
    background: white;
    transform: scale(1.02);
}

.secret-hint {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.cute-btn {
    background: white;
    padding: 0.7rem 1.6rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    color: #a21caf;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.cute-btn:hover {
    background: #fdf2f8;
    transform: scale(1.04);
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== 雙卡片並排（語錄 + 時鐘）===== */
.double-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* 時鐘卡片增強風格 */
.clock-card-enhanced {
    background: linear-gradient(145deg, rgba(255, 245, 250, 0.95), rgba(255, 235, 245, 0.9));
    text-align: center;
    position: relative;
    overflow: visible;
}

.clock-card-enhanced::before,
.clock-card-enhanced::after {
    content: "🍙";
    position: absolute;
    top: -12px;
    font-size: 1.6rem;
    opacity: 0.8;
    pointer-events: none;
}

.clock-card-enhanced::before {
    left: 15px;
    transform: rotate(-20deg);
}

.clock-card-enhanced::after {
    right: 15px;
    transform: rotate(20deg);
}

.enhanced-clock {
    margin: 0.5rem 0;
    position: relative;
}

.clock-digits {
    font-family: 'Quicksand', 'Comic Neue', 'Chalkboard SE', cursive, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(145deg, #fff5fa, #ffe0f0);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 80px;
    letter-spacing: 3px;
    color: #c45b8d;
    box-shadow: 0 6px 0 #f3c0d4, 0 10px 20px rgba(0, 0, 0, 0.05);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.clock-digits:hover {
    transform: scale(1.02);
}

.clock-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.paw-left,
.paw-right {
    font-size: 1.5rem;
    display: inline-block;
    animation: pawWiggle 2s infinite ease;
}

.paw-left {
    animation-delay: 0s;
}

.paw-right {
    animation-delay: 0.3s;
}

@keyframes pawWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg) scale(1.1);
    }

    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.clock-message {
    font-size: 1rem;
    background: #fdeef4;
    padding: 0.3rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    color: #b84c7c;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #ffd9e8;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    letter-spacing: 0.5px;
}

.clock-message:hover {
    transform: scale(1.02);
}

.clock-footer {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: #e28eb0;
    border-top: 1px solid #ffd9e8;
    padding-top: 0.6rem;
}

/* 時鐘卡片內的運勢區塊 */
.fortune-in-clock {
    margin: 1rem 0 0.5rem;
    padding: 0.8rem 0;
    border-top: 1px dashed #f9a8d4;
}

.fortune-level {
    font-size: 1.6rem;
    font-weight: 800;
    color: #c084fc;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(192, 132, 252, 0.2);
}

.fortune-detail p {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fortune-detail i {
    width: 1.4rem;
    color: #d946ef;
    font-size: 0.9rem;
}

.fortune-detail span {
    color: var(--primary-text);
}

/* ===== game.html 專用樣式 ===== */
.game-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.5rem;
    color: #a21caf;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 5px solid #f472b6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-list.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.game-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 1rem;
    transition: 0.2s;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.game-icon {
    font-size: 2rem;
    color: #c084fc;
    width: 45px;
    text-align: center;
}

.game-info {
    flex: 1;
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #be185d;
    margin-bottom: 0.2rem;
}

.game-rank {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a21caf;
    margin-bottom: 0.1rem;
}

.game-record {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

.game-note-box {
    background: rgba(255, 240, 245, 0.6);
    border-radius: 28px;
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== 放浪團地帶專用樣式 ===== */
/* 團簡介 */
.group-intro {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.group-banner {
    font-size: 4rem;
    color: #c084fc;
    background: rgba(255, 240, 245, 0.6);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.group-description {
    flex: 1;
}

.group-description h2,
.group-description h3 {
    color: #a21caf;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.group-description p {
    color: var(--primary-text);
    line-height: 1.6;
}

/* 分支標籤 */
.branch-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: #fce7f3;
    color: #a21caf;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    margin-left: 0.6rem;
    display: inline-block;
}

/* 成員網格 */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #a21caf;
    margin: 1.5rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 成員卡片 */
.member-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(var(--blur-amount));
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    border: 4px solid #c084fc;
    margin-bottom: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar i {
    font-size: 3rem;
    color: #c084fc;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #be185d;
    margin-bottom: 0.2rem;
}

.member-tag {
    font-size: 0.7rem;
    background: #fce7f3;
    color: #a21caf;
    padding: 0.15rem 0.6rem;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.3rem;
}

.member-role {
    font-size: 0.85rem;
    color: #a21caf;
    margin-bottom: 0.5rem;
}

.member-role i {
    margin-right: 0.3rem;
}

.member-desc {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex: 1;
}

.member-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.member-links a {
    color: #c084fc;
    font-size: 1.2rem;
    transition: 0.2s;
}

.member-links a:hover {
    color: #a21caf;
    transform: scale(1.15);
}

/* 主要成員卡片（稍微強調） */
#mainMembers .member-card {
    border: 2px solid rgba(192, 132, 252, 0.3);
}

#mainMembers .member-card:hover {
    border-color: #c084fc;
}

/* 次級成員卡片（柔和一點） */
.sub-member {
    opacity: 0.9;
}

.sub-member .member-avatar {
    border-color: #d4a0c0;
    border-width: 3px;
}

.sub-member .member-name {
    color: #8a6d8a;
}

.sub-member .member-tag {
    display: none;
}

/* 預留空位卡片 */
.member-card.placeholder {
    border: 2px dashed #f9a8d4;
    background: rgba(255, 248, 250, 0.4);
    justify-content: center;
    opacity: 0.8;
}

.member-card.placeholder .member-avatar {
    border-color: #f9a8d4;
    background: #fce7f3;
}

.member-card.placeholder .member-avatar i {
    font-size: 2.5rem;
    color: #f472b6;
}

.member-card.placeholder:hover {
    opacity: 1;
}

/* ===== 圖片文字區塊 ===== */
.featured-media {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.media-image {
    flex: 1.5;
    min-width: 200px;
    border-radius: 24px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.media-content {
    flex: 1;
    min-width: 150px;
}

.media-content h2,
.media-content h3 {
    color: #a21caf;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.media-content p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== 更新現況（動態牆）===== */
.group-updates {
    margin: 1.5rem 0;
    padding: 1.5rem;
}

.group-updates h2,
.group-updates h3 {
    color: #a21caf;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.update-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    transition: 0.2s;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.update-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c084fc;
    white-space: nowrap;
    padding-top: 0.1rem;
    min-width: 80px;
}

.update-content {
    font-size: 0.92rem;
    color: var(--primary-text);
    line-height: 1.5;
}

.update-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    background: #fce7f3;
    color: #be185d;
    padding: 0.1rem 0.5rem;
    border-radius: 40px;
    margin-right: 0.4rem;
}

.update-more {
    text-align: right;
    margin-top: 0.8rem;
}

.update-more .small {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

/* ===== 載入畫面 ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #faf0fa, #f3e6f8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
    animation: loadingBounce 1.2s infinite ease-in-out;
}

.loading-riceball {
    font-size: 4rem;
    color: #c084fc;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #a21caf;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.loading-paws {
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    opacity: 0.8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== 可愛的淡入淡出提示框 ===== */
.cute-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(192, 132, 252, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.cute-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1.3rem;
    animation: toastBounce 0.4s ease;
}

.toast-message {
    letter-spacing: 1px;
}

@keyframes toastBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== 手機版綜合調整 ===== */
@media (max-width: 680px) {
    h1 {
        font-size: 2rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar i {
        font-size: 3rem;
    }

    .about-container {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1, .page-header h2 {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .double-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clock-digits {
        font-size: 1.8rem;
    }

    .cute-toast {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: normal;
        text-align: center;
        width: 80%;
        justify-content: center;
    }

    .toast-icon {
        font-size: 1rem;
    }

    .fortune-level {
        font-size: 1.3rem;
    }

    .fortune-detail p {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .game-list.two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-icon {
        width: 40px;
        font-size: 1.6rem;
    }

    .game-name {
        font-size: 1rem;
    }

    .group-intro {
        flex-direction: column;
        text-align: center;
    }

    .group-banner {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }

    .featured-media {
        flex-direction: column;
    }

    .media-image img {
        max-height: 150px;
    }

    .update-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .update-date {
        min-width: auto;
        font-size: 0.7rem;
    }
}


/* =========================================================
   v3.1 全域優化：可及性、動效與版面細節
   ========================================================= */

:root {
    --focus-ring: 0 0 0 3px rgba(217, 70, 239, 0.35);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    /* clip 不會建立捲動容器，避免破壞 sticky 導覽 */
    overflow-x: clip;
}

/* 圖片不溢出容器，避免跑版與累計版面位移 */
img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: #f9a8d4;
    color: #3b2a2f;
}

/* ---------- 跳至主要內容（鍵盤使用者）---------- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    z-index: 10001;
    background: #a21caf;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 16px 16px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: 0;
}

/* ---------- 鍵盤焦點樣式 ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #a21caf;
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- 導覽列 ---------- */
.navbar {
    position: sticky;
    top: 0.75rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links li a:focus-visible {
    outline-offset: 6px;
}

/* 選單按鈕：重設瀏覽器預設外觀 */
.nav-toggle {
    background: none;
    border: 0;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

.nav-toggle:active {
    transform: scale(0.95);
}

/* 平板寬度：縮小間距，避免選單提早換行 */
@media (min-width: 681px) and (max-width: 960px) {
    .nav-links {
        gap: 0.9rem;
    }

    .nav-brand {
        font-size: 1.05rem;
    }

    .nav-links li a {
        font-size: 0.95rem;
    }
}

/* ---------- 卡片內文間距 ---------- */
.card h2,
.card h3 {
    line-height: 1.35;
}

.quote + .quote {
    margin-top: 0.9rem;
}

.quote-text {
    margin: 0;
}

.quote-author {
    margin: 0.25rem 0 0;
}

/* ---------- 貓掌按鈕（button 版本）---------- */
.clickable-paw {
    font: inherit;
    border: 1px solid #fbcfe8;
    -webkit-appearance: none;
    appearance: none;
}

.clickable-paw:active {
    transform: scale(0.98);
}

/* ---------- 頁首標題（改用 h1 後維持原本視覺）---------- */
.page-header h1 {
    font-size: 2rem;
    color: #a21caf;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    margin-bottom: 0.5rem;
}

@media (max-width: 680px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* ---------- 頁尾 ---------- */
footer p {
    margin: 0.25rem 0;
}

.footer-legal {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ---------- 載入畫面 ---------- */
#loading-screen.fade-out {
    pointer-events: none;
}

/* ---------- 更新列表：窄版可橫向捲動 ---------- */
.kanban-table {
    -webkit-overflow-scrolling: touch;
}

/* ---------- 導覽列：6 個項目時允許換行，避免平板寬度溢出 ---------- */
.nav-links {
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

/* ---------- 尊重系統「減少動態效果」設定 ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero:hover,
    .card:hover,
    .blog-card:hover,
    .game-item:hover,
    .info-item:hover,
    .member-card:hover {
        transform: none;
    }
}
