/* 全域設定 */

/* 粉圓字體定義 */
@font-face {
    font-family: 'huninn';
    src: url('/fonts/jf-openhuninn-2.1.ttf') format('truetype');
}

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

:root {
    --sky-blue: #87CEEB;
    --light-blue: #B0E0E6;
    --deep-blue: #4682B4;
    --powder-blue: #B0C4DE;
    --baby-blue: #ADD8E6;
    --cloud-white: #F0F8FF;
    --pink: #FFB6C1;
    --yellow: #FFFF99;
    --lavender: #E6E6FA;
}

body {
    -webkit-font-smoothing: antialiased; /* 給 Chrome/Safari 使用 */
    -moz-osx-font-smoothing: grayscale;   /* 給 Firefox 使用 */
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #E0F6FF 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
    @apply font-huninn;
    font-family: 'huninn', sans-serif;
    background-color: #eaf6fb;
    margin: 0;
}


/* 天空背景動畫 */
.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    font-size: 3rem;
    animation: float 30s infinite ease-in-out;
    opacity: 0.7;
}

.cloud1 {
    top: 10%;
    left: -10%;
    animation-duration: 40s;
}

.cloud2 {
    top: 30%;
    left: -15%;
    animation-duration: 50s;
    animation-delay: -10s;
}

.cloud3 {
    top: 60%;
    left: -20%;
    animation-duration: 45s;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(120vw) translateY(-20px);
    }
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 3s infinite ease-in-out;
}

.star {
    top: 15%;
    right: 20%;
}

.star2 {
    top: 40%;
    right: 15%;
    animation-delay: -1s;
}

.star3 {
    top: 70%;
    right: 30%;
    animation-delay: -2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}



@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}





@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.profile-box p {
    color: #555;
    font-size: 0.9rem;
}

/* 導航選單 */
.navigation ul {
    list-style: none;
}

.navigation li {
    margin: 8px 0;
}

.navigation a {
    display: block;
    padding: 10px 15px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--pink) 100%);
    color: var(--deep-blue);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--deep-blue);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.navigation a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, var(--pink) 0%, var(--yellow) 100%);
}

.music-player {
    background: #fff;
    border: 2px solid var(--deep-blue);
    border-radius: 5px;
    padding: 5px;
}

.counter {
    text-align: center;
}

.counter img {
    width: 100%;
    margin-bottom: 8px;
}

.visitor-count {
    font-weight: bold;
    color: var(--deep-blue);
    font-size: 1.2rem;
}

.cute-box {
    background: var(--lavender);
    font-size: 0.85rem;
    text-align: center;
}

.cute-box p {
    margin: 5px 0;
}

/* 主要內容區 */
.main-content {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 標題橫幅 */
.header {
    background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 50%, var(--light-blue) 100%);
    border: 5px double var(--deep-blue);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: rainbow 5s infinite;
}

@keyframes rainbow {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

.header h1 {
    font-size: 2.5rem;
    color: var(--deep-blue);
    text-shadow: 
        3px 3px 0 var(--pink),
        6px 6px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.sparkle {
    display: inline-block;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.header-marquee {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--deep-blue);
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
    color: var(--deep-blue);
}

/* 內容框 */
.content-box {
    background: rgba(255, 255, 255, 0.85);
    border: 4px solid var(--light-blue);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box h2 {
    color: var(--deep-blue);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px dotted var(--pink);
    text-shadow: 2px 2px 4px rgba(135, 206, 235, 0.3);
}

/* 頁尾 */
.footer {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--powder-blue) 100%);
    border: 4px double var(--deep-blue);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}

.footer p {
    margin: 8px 0;
    color: #555;
}

.footer a {
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--pink);
}

.footer img {
    vertical-align: middle;
    margin-right: 5px;
}

/* 響應式設計 */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }
}

/* 捲動條樣式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cloud-white);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--light-blue), var(--pink));
    border-radius: 10px;
    border: 2px solid var(--cloud-white);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pink), var(--light-blue));
}
