/* --- 1. 核心變數與基礎設定 --- */
:root {
    --bg-color: #0a0a0b;
    --text-main: #ffffff;
    --accent-warm: linear-gradient(135deg, #ff8a00, #e52e71);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.8;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- 2. 導覽列 (Navigation) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(10, 10, 11, 0.7);
}

.logo {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: var(--accent-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-switcher span {
    margin-left: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-switcher span:hover {
    opacity: 1;
    color: #ff8a00;
}

/* --- 3. 主視覺區 (Hero Section) --- */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0b 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Archivo', sans-serif;
    margin: 0 0 1rem 0;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
}

/* --- 4. 內容容器與卡片 --- */
.container {
    padding: 0 10%;
    margin-top: -10vh;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.about-section h2 {
    font-family: 'Archivo', sans-serif;
    margin-top: 0;
    background: var(--accent-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.warm-text {
    font-size: 1.15rem;
    color: #bbb;
    margin-bottom: 0;
}

/* --- 5. Podcast 播放器區塊 --- */
.episode-section #latest-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff8a00;
    margin: 0 0 25px 0;
}

#spotify-player-container {
    border-radius: 12px;
    overflow: hidden;
}

/* --- 6. Podcast 平台連結區 --- */
.podcast-section {
    text-align: center;
    margin: 80px 0;
}

.podcast-section h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* --- Podcast 平台連結區優化 --- */
.podcast-container {
    display: flex;
    gap: 25px; /* 加大按鈕間距 */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.podcast-link {
    display: flex;
    align-items: center;
    padding: 18px 38px; /* 增加按鈕的內距，讓它更顯眼 */
    border-radius: 100px;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05); /* 稍微加深一點背景色 */
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 關鍵修正：加大自訂圖示的尺寸 */
.icon-wrapper {
    width: 40px;  /* 從 24px 加大到 40px */
    height: 40px; /* 從 24px 加大到 40px */
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 確保圖片不超出邊框 */
}

.icon-wrapper img {
    width: 100%;       /* 強制寬度填滿 */
    height: 100%;      /* 強制高度填滿 */
    object-fit: contain; /* 保持比例，不變形且不被裁切 */
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); /* 增加一點微光，讓暗色圖標更清晰 */
}

.podcast-link span {
    font-size: 1.1rem; /* 稍微加大文字 */
    font-weight: 500;
    letter-spacing: 1px;
}

/* 懸停效果增強 */
.spotify-btn:hover {
    border-color: #1DB954;
    background: rgba(30, 215, 94, 0.15);
    box-shadow: 0 0 25px rgba(30, 215, 94, 0.3);
}

.apple-btn:hover {
    border-color: #a05aff;
    background: rgba(160, 90, 255, 0.15);
    box-shadow: 0 0 25px rgba(160, 90, 255, 0.3);
}

/* --- 7. Footer 數位日落 --- */
footer {
    position: relative;
    padding-top: 100px;
    background: linear-gradient(to top, rgba(229, 46, 113, 0.05) 0%, transparent 100%);
    margin-top: 100px;
}

.footer-gradient-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8a00, #e52e71, #6610f2, transparent);
    opacity: 0.6;
}

.footer-container {
    padding: 60px 10%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-brand .logo {
    margin-bottom: 10px;
}

#footer-slogan {
    font-size: 0.85rem;
    opacity: 0.4;
    margin: 0;
}

.footer-column h4 {
    font-size: 0.8rem;
    color: #ff8a00;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.4;
    margin-right: 25px;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
    color: #e52e71;
}

.footer-bottom {
    padding: 30px;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.3;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- 8. 回到頂部按鈕 --- */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--accent-warm);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(229, 46, 113, 0.3);
}

#back-to-top svg {
    color: white;
}

/* --- 9. RWD 響應式調整 --- */
@media (max-width: 768px) {
    nav { padding: 1.5rem 5%; }
    .container { padding: 0 5%; }
    .glass-card { padding: 2rem; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .social-icons { margin-top: 10px; margin-right: 0; }
    .social-icons a { margin: 0 10px; }
}
/* 導覽列 Logo 圖標優化 */
.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* 確保是圓形 */
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}
