:root {
    --primary-color: #FF6B35;
    --secondary-color: #2E3038;
    --background-color: rgb(247, 248, 249);
    --global-border-radius: 30px;
    --blur-value: 10px;
    --transition-speed: 0.3s;
    --nav-height: 80px;
    --tag-radius: 30px;
    --spacing-base: 1.5rem;
    --border-width: 2px;
    --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.05);
    
    --status-good: #4ade80;
    --status-medium: #facc15;
    --status-bad: #f87171;
    --status-checking: #94a3b8;
    
    --icon-green: #10B981;
    --icon-red: #EF4444;
    --icon-orange: #F59E0B;
    --icon-gray: #D1D5DB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: var(--background-color);
    min-height: 100vh;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: calc(var(--spacing-base) / 2) 5%;
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.username {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-base) * 1.33);
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: calc(var(--spacing-base) / 4) calc(var(--spacing-base) / 2);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

main {
    margin-top: var(--nav-height);
    min-height: calc(100vh - 2 * var(--nav-height));
    padding: calc(var(--spacing-base) * 2.66) 5%;
    display: flex;
    gap: calc(var(--spacing-base) * 4);
}

.left-panel {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 50% !important;
}

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

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, transparent 50%, rgba(0, 0, 0, 0.2));
    z-index: 3;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-base) * 4) 0 calc(var(--spacing-base) * 1.33) calc(var(--spacing-base) * 2);
}

.name-title {
    margin-bottom: calc(var(--spacing-base) * 2.66);
}

.name-title h1 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.name-title p {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 700px;
    margin-bottom: auto;
}

.tag {
    padding: 1rem 2rem;
    border: calc(var(--border-width)) solid var(--primary-color);
    border-radius: var(--tag-radius) !important;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    background: white;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

@media (max-width:1200px) {
    main {
        flex-direction: column;
        padding: 2rem 5%;
    }
    .left-panel {
        width: 100%;
        margin: 2rem 0;
    }
    .avatar-container {
        width: 280px;
        height: 280px;
    }
    .right-panel {
        width: 100%;
        padding: 0;
    }
    .name-title h1 {
        font-size: 2.2rem;
    }
    .tag {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .name-title h1 {
        font-size: 1.8rem;
    }
}

/* ============================
   Podcast Hero Section
   ============================ */
.podcast-hero-section {
    padding: 0px 5% 40px;
    width: 100%;
    overflow: hidden; 
}

.podcast-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px; 
    flex-wrap: wrap; 
    justify-content: center; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.podcast-left-stage {
    flex: 0 0 420px; 
    display: flex;
    flex-direction: column; 
    gap: 25px;
    position: sticky;
    top: 100px;
    align-items: center; 
    user-select: none;
    -webkit-user-select: none;
}

.podcast-sidebar {
    width: 300px; 
    height: 60px;
    margin-top: 20px;
    position: relative;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    z-index: 20;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.timeline-track {
    position: absolute;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 2px;
    background: transparent; 
    border-radius: 2px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; 
    height: 100%;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    z-index: -1; 
}

.timeline-indicator {
    position: absolute;
    top: 50%; 
    transform: translate(-50%, -50%); 
    left: 0; 
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10; 
    pointer-events: none;
}

.timeline-node {
    position: absolute;
    top: 50%; 
    transform: translate(-50%, -50%); 
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 5; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.timeline-node:hover .timeline-dot {
    transform: scale(1.5);
    background: var(--primary-color);
}

.timeline-node.active .timeline-dot {
    opacity: 0; 
}

.timeline-label {
    position: absolute;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: pre-wrap; 
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0; 
    pointer-events: none;
    min-width: 140px; 
}

.timeline-node:hover .timeline-label {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.timeline-node.active:hover .timeline-label {
    font-weight: 700;
    color: var(--primary-color);
}

.podcast-stack {
    width: 420px; 
    height: 320px; 
    position: relative;
    perspective: 1200px;
}

.stack-card {
    position: absolute;
    top: 0;
    left: 50%; 
    width: 300px; 
    height: 300px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-color: #333; 
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.25);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center center;
    cursor: pointer;
    backface-visibility: hidden; 
}

.stack-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    border-radius: 30px;
    transition: background 0.3s;
}

.stack-card.active {
    z-index: 10;
    box-shadow: 0 20px 50px -10px rgba(255, 107, 53, 0.4);
    cursor: default;
    opacity: 1;
}

@keyframes slideOutToBottom {
    0% { transform: translate(-50%, 0) scale(1) rotate(0deg); opacity: 1; z-index: 10; }
    100% { transform: translate(-50%, 50px) scale(0.8) rotate(10deg); opacity: 0; z-index: 0; }
}

.stack-card.anim-leave {
    animation: slideOutToBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: none !important;
}

@keyframes slideInFromBottom {
    0% { transform: translate(-50%, 50px) scale(0.8) rotate(-10deg); opacity: 0; z-index: 11; }
    100% { transform: translate(-50%, 0) scale(1) rotate(0deg); opacity: 1; z-index: 11; }
}

.stack-card.anim-enter {
    animation: slideInFromBottom 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    transition: none !important;
    z-index: 11; 
}

.podcast-player-card {
    flex: 1;
    min-width: 350px; 
    background: white;
    border-radius: var(--global-border-radius);
    padding: 30px;
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.episode-info-row {
    display: flex;
    gap: 30px;
    margin-bottom: 0px; 
    padding-bottom: 30px;
}

.episode-cover-box {
    flex: 0 0 200px; 
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    top: 5px; 
    z-index: 2; 
}

.episode-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0px; 
    min-width: 0; 
}

.episode-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    position: relative;
    padding-bottom: 5px;
}

.episode-date::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.episode-text-content h3 {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin: 12px 0;
    line-height: 1.3;
}

.episode-desc-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.episode-text-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
    max-height: 3.2em; 
    overflow: hidden; 
    transition: max-height 1s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.episode-text-content p.expanded {
    mask-image: none; 
    -webkit-mask-image: none;
}

.toggle-desc-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 0;
    width: auto;
    align-self: flex-end; 
    display: flex;
    justify-content: center;
    transition: color 0.3s ease, transform 0.4s ease; 
    outline: none;
    margin-top: 2px;
}

.toggle-desc-btn:hover { color: var(--primary-color); }
.toggle-desc-btn.rotated { transform: rotate(180deg); }

/* ✨✨✨ 重构的播放控制区域样式 (横向) ✨✨✨ */
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    margin-top: auto;
    /* [Removed] Dashed border top as requested */
}

.time-display {
    flex: 0 0 125px; 
    width: 125px;    
    text-align: center; 
    font-variant-numeric: tabular-nums; 
    font-size: 1rem;
    color: var(--primary-color);
    font-family: 'Segoe UI', monospace;
    font-weight: 700;
    white-space: nowrap;
}

.hero-play-btn {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
    flex-shrink: 0;
}

.hero-play-btn i {
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-play-btn .fa-play {
    margin-left: 4px; 
}

.hero-play-btn:hover { 
    transform: scale(1.1); 
    background: #ff5010; 
}

.hero-play-btn:active { transform: scale(0.95); }

/* ✨ 精致进度条样式：灰色底条 + 橙色实时进度 ✨ */
.hero-progress-wrapper {
    flex: 1;
    height: 10px; 
    background: #f0f0f0; 
    border-radius: 10px;
    position: relative;
    cursor: pointer; 
    padding: 0; 
    overflow: visible; 
}

.hero-progress-bg {
    width: 100%;
    height: 100%;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color) !important; 
    border-radius: 10px;
    position: relative; 
    transition: width 0.1s linear; 
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.2);
}

/* 进度条指示点 */
.hero-progress-fill::after {
    content: '';
    position: absolute;
    right: -7px; 
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    pointer-events: none;
    z-index: 5;
    opacity: 0; 
}

.hero-progress-wrapper:hover .hero-progress-fill::after,
.hero-progress-fill.active::after {
    opacity: 1;
}

.podcast-divider {
    height: 0;
    border-top: 1px dashed #e0e0e0; /* [Keep] Dashed border above list */
    background: none; 
    margin: 30px 0 20px; /* [Adjust] Increased top margin for less density */
    width: 100%;
}

.playlist-header {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px; /* [Adjust] Increased bottom margin for less density */
    display: flex;
    align-items: center;
    gap: 10px;
}

.podcast-playlist-box {
    width: 100%;
    max-height: 250px; 
    overflow-y: auto;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    padding: 10px; /* [Adjust] Increased box padding for less density */
    position: relative; 
    isolation: isolate; 
}

.podcast-playlist-box::-webkit-scrollbar { width: 6px; }
.podcast-playlist-box::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.podcast-playlist-box::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 10px; }
.podcast-playlist-box::-webkit-scrollbar-thumb:hover { background: #bbb; }

.playlist-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px; /* [Adjust] Increased top/bottom padding for less density */
    border-radius: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    position: relative; 
    z-index: 2; 
    background: transparent; 
}

.playlist-item:last-child { border-bottom: none; }
.playlist-item:hover { 
    background: rgba(0,0,0,0.02); 
}

.playlist-backdrop {
    position: absolute;
    left: 5px; 
    width: calc(100% - 10px); 
    height: 0; 
    background: rgba(255, 107, 53, 0.1); 
    border-radius: 8px;
    pointer-events: none; 
    z-index: 1; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    opacity: 0; 
}

.playlist-item.active .pi-title { color: var(--primary-color); font-weight: 700; transition: color 0.3s; }
.playlist-item.active .pi-date { color: rgba(255, 107, 53, 0.7); }

.playlist-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px; /* [Adjust] Increased gap between title and date */
    flex: 1;
    min-width: 0;
}

.pi-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-date {
    font-size: 0.8rem;
    color: #999;
}

.status-icon-container {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.audio-wave {
    display: none; 
    align-items: center; 
    gap: 3px;
    height: 24px;
    width: 28px;
    justify-content: center;
    contain: layout paint;
    transform: translateZ(0); 
    will-change: contents;
}

.playlist-item.playing .audio-wave { display: flex; }

.audio-wave span {
    display: block;
    width: 3px;
    min-height: 4px; 
    height: 4px; 
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: height 0.1s ease; 
}

@media (max-width: 900px) {
    .podcast-layout {
        flex-direction: column;
        align-items: center;
    }
    .podcast-left-stage {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 20px;
        position: static;
        justify-content: center;
        padding: 0 20px; 
    }
    .podcast-stack {
        max-width: 100%;
    }
    .podcast-player-card {
        width: 100%;
        min-height: auto; 
    }
}

@media (max-width: 600px) {
    .podcast-left-stage {
        transform: scale(0.9); 
    }
    /* [Fix] Mobile layout adjustments */
    .podcast-player-card {
        min-height: auto; /* [Fix] Remove forced height on mobile to prevent gaps */
    }
    .episode-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 10px; /* Reduced bottom padding */
    }
    .episode-date::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .episode-cover-box {
        margin-bottom: 20px;
        top: 0; 
        width: 200px;
        height: 200px;
        flex: none; 
    }

    .player-controls-row {
        flex-direction: row;            /* 改為橫向排列 */
        flex-wrap: wrap;                /* 允許元素換行 */
        justify-content: flex-start; /* 把按鈕和時間推向左右兩端 */
        align-items: center;
        gap: 15px 20px;                    /* 上下間距 15px，左右由 space-between 控制 */
        margin-top: 20px;
        padding: 15px 0;                /* 稍微縮小一點內邊距 */
    }

    .hero-play-btn {
        order: 1;                       /* 排在第一位（左上） */
        margin: 0;
    }

    .time-display {
        order: 2;                       /* 排在第二位（右上） */
        flex: 0 0 auto;                 /* 取消電腦版的固定寬度限制 */
        width: auto;
        text-align: left;
    }

    .hero-progress-wrapper {
        order: 3;                       /* 排在第三位（下面一整行） */
        flex: 0 0 100%;                 /* 強制佔滿 100% 寬度，自動換到下一行 */
        margin-top: 5px;                /* 和上面的按鈕稍微拉開一點視覺空間 */
    }

    .toggle-desc-btn {
        align-self: center; 
    }

        .link-container {
        grid-template-columns: repeat(2, 1fr); /* 強制分為左右兩列 */
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .podcast-sidebar {
        display: none !important;
    }
    .podcast-left-stage {
        height: auto; 
        margin-bottom: 40px; 
    }
}

.link-section {
    padding: 40px 5% 120px; 
    background: var(--background-color);
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; 
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.rocket-icon {
    font-size: 1.8rem;
    animation: float 2s ease-in-out infinite;
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 10px;
    padding: 5px;
}

.refresh-btn:hover {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.network-dashboard {
    background: white;
    border-radius: var(--global-border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-base);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dashboard-header h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-ip {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(255, 107, 53, 0.1);
    padding: 5px 15px;
    border-radius: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tag-idc { background-color: #E0E7FF; color: #4338CA; border: 1px solid #C7D2FE; }
.tag-isp { background-color: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.tag-native { background-color: #ECFCCB; color: #3F6212; border: 1px solid #D9F99D; }
.tag-broadcast { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.tag-loading { background-color: #F3F4F6; color: #6B7280; }
.tag-asn { background-color: #F3F4F6; color: #374151; border: 1px solid #E5E7EB; font-family: monospace; }
.tag-org { background-color: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

.safe-score {
    font-weight: bold;
    font-size: 1.3rem;
}

.dashboard-divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}

.detection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.detection-title {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.detection-list {
    list-style: none;
    padding: 0;
}

.detection-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 0.95rem;
}

.detection-list li:last-child {
    border-bottom: none;
}

.d-label {
    color: #555;
    font-weight: 500;
}

.d-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.status-icon { font-size: 1.1rem; }
.status-icon.neutral { color: #d1d5db; }

.link-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    position: relative;
    border-radius: var(--global-border-radius);
    padding: 25px;
    min-height: 120px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    background: var(--card-bg-tint, rgba(255, 255, 255, 0.4)); 
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.8);
    border-color: #fff;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%; 
    height: 400%;
    background: var(--bg-gradient, linear-gradient(45deg, #e0e0e0, #f5f5f5));
    border-radius: 45%; 
    transform: translate(-50%, -50%);
    animation: liquid-spin 12s linear infinite;
    opacity: 0.5;
    filter: blur(50px);
    z-index: -2;
}

@keyframes liquid-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.card-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.link-card h3 {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.link-card i {
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: var(--brand-color, var(--primary-color));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-card:hover i {
    background: #fff;
    transform: scale(1.15) rotate(10deg);
}

.network-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 5;
    pointer-events: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-checking);
    box-shadow: 0 0 5px currentColor;
    transition: background-color 0.3s ease;
}

.latency-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: monospace;
}

.status-good .status-dot { background-color: var(--status-good); }
.status-medium .status-dot { background-color: var(--status-medium); }
.status-bad .status-dot { background-color: var(--status-bad); }

.cf-card { --brand-color: #F38020; --card-bg-tint: rgba(243, 128, 32, 0.05); }
.google-card { --brand-color: #4285F4; --card-bg-tint: rgba(66, 133, 244, 0.05); }
.github-card { --brand-color: #24292e; --card-bg-tint: rgba(36, 41, 46, 0.05); }
.youtube-card { --brand-color: #FF0000; --card-bg-tint: rgba(255, 0, 0, 0.05); }
.bilibili-card { --brand-color: #00A1D6; --card-bg-tint: rgba(0, 161, 214, 0.05); }
.chatgpt-card { --brand-color: #10A37F; --card-bg-tint: rgba(16, 163, 127, 0.05); }

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

/* 创作者区域 */
.creator-section {
    padding: 80px 5%;
    background: var(--background-color);
}

.scroll-layout-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 0 20px;
    align-items: center; 
}

.sticky-profile {
    height: fit-content;
    will-change: transform; 
}

.creator-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.creator-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.creator-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-number {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
}

.creator-bio p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.hackintosh-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    color: #a9b7c6;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.prompt { color: #27c93f; margin-right: 8px; }
.cmd { color: #fff; }
.key { color: #ffbd2e; font-weight: bold; margin-right: 10px; }
.cursor { animation: blink 1s step-end infinite; }

.fetch-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.apple-logo {
    color: #a9b7c6;
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

@keyframes blink { 50% { opacity: 0; } }

.horizontal-scroll-wrapper {
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.slider-controls {
    display: flex;
    gap: 10px;
    margin-left: auto; 
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e5e5e5;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #d1d1d1;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-mask-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.scroll-mask-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80px; 
    background: linear-gradient(to right, var(--background-color) 15%, rgba(247, 248, 249, 0) 100%);
    z-index: 10; 
    pointer-events: none; 
}

.cards-scroll-container {
    display: flex;
    gap: 30px; 
    overflow-x: auto;
    padding: 40px 20px 40px 60px; 
    scrollbar-width: none;
    scroll-behavior: smooth; 
}

.cards-scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    flex: 0 0 400px; 
    background: white;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    cursor: grab; 
    will-change: transform;
}

.scroll-card-thumbnail {
    height: 280px; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.scroll-card-content {
    padding: 25px;
}

.scroll-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 8px;
}

.scroll-card-content p {
    color: #888;
    font-size: 0.9em;
    line-height: 1.5;
}

/* =========================================================
   行動端專屬：App 級別無縫分層滑動 (Grid 上下雙排卡片版)
   ========================================================= */
@media (max-width: 1000px) {
    /* 1. 隱藏無用的電腦版點擊按鈕 */
    .slider-controls { display: none !important; }

    /* 2. 破壞層級魔法：把外殼隱形，讓卡片直接參與排版 */
    .horizontal-scroll-wrapper,
    .scroll-mask-container,
    .cards-scroll-container {
        display: contents !important;
    }

    /* ✨ 3. 核心軌道：升級為上下雙排的 Grid 網格 ✨ */
    .scroll-layout-container {
        display: grid !important;
        grid-template-rows: 1fr 1fr !important; /* 魔法 1：強制分割成上下兩排 */
        grid-auto-flow: column !important; /* 魔法 2：排列方式改為「由上到下，滿了就往右新增一列」 */
        grid-template-columns: 100vw !important; /* 第一列（個人介紹）佔滿 100% 寬度 */
        grid-auto-columns: 75vw !important; /* 後續卡片的每一列，佔螢幕 75% 寬度 */
        gap: 15px 20px !important; /* 上下間距 15px，左右間距 20px */
        
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        width: 100vw !important;
        margin-left: -5vw !important; 
        padding: 10px 5vw 20px 0 !important; /* 右側保留一點 padding 讓最後一張卡片不貼邊 */
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .scroll-layout-container::-webkit-scrollbar { display: none; }

    /* 4. 層 1 (Layer 1)：個人介紹 */
    .sticky-profile {
        grid-row: 1 / 3 !important; /* ✨ 魔法 3：告訴介紹區塊「你要一口氣霸佔上下兩排的高度」 ✨ */
        width: 100vw !important;
        padding: 0 5vw !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important; 
        scroll-snap-stop: always !important;
        margin-bottom: 0 !important;
        position: static !important;
        transform: none !important;
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* 確保內容在畫面中垂直置中 */
    }

    /* 5. 層 2 (Layer 2)：專案卡片 */
    .scroll-card {
        scroll-snap-align: center !important; 
        display: flex !important;
        flex-direction: column !important;
        margin-right: 0 !important; /* 移除舊版 margin，交給 Grid 的 gap 統一管理 */
        height: 100% !important; /* 完美填滿單排的高度 */
    }

    .scroll-card-thumbnail {
        flex: 1 !important; /* 圖片高度自動適應 */
        min-height: 100px !important; /* 降低最低高度限制 */
        height: auto !important;
    }

    .scroll-card-content {
        padding: 15px !important; /* 由於卡片變小了，縮減內邊距 */
        flex-shrink: 0 !important;
    }

    .scroll-card-content h3 {
        font-size: 1.05rem !important; /* 稍微縮小標題 */
        margin-bottom: 5px !important;
    }

    /* 避免描述文字太長把小卡片撐爆 */
    .scroll-card-content p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; /* ✨ 魔法 4：超過兩行的文字會自動變成 ... ✨ */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* 6. 滑動引導 UI 樣式與動畫 */
    .mobile-swipe-guide {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 25px;
        padding: 10px 20px;
        background: rgba(255, 107, 53, 0.1);
        color: var(--primary-color);
        border-radius: 20px;
        font-size: 0.95rem;
        font-weight: 600;
    }
    .guide-arrows { display: flex; animation: swipe-right 1.5s infinite; }
    @keyframes swipe-right {
        0%, 100% { transform: translateX(0); opacity: 0.5; }
        50% { transform: translateX(8px); opacity: 1; }
    }
}

/* ============================
   Music Section
   ============================ */
.music-section {
    padding: 0 5% 80px;
    background: var(--background-color);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.song-card {
    background: #fff;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: all var(--transition-speed);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.song-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.song-card h3 {
    font-size: 1.1em;
    margin: 12px 15px 5px;
    padding: 0px 15px;
    color: #333;
}

.song-card p {
    margin: 0 15px 12px;
    color: #666;
    font-size: 0.9em;
    padding: 0px 15px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-speed);
    z-index: 2;
}

.song-card:hover .play-overlay { opacity: 1; }

.fa-play-circle {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1000px) {
    .music-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .music-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .music-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
    background: linear-gradient(15deg, #1a1e2c, #2d3548);
    color: #a0aec0;
    margin-top: 80px;
    position: relative;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    color: #ff6b6b;
    font-size: 1.2em;
    margin-bottom: 1.2em;
    position: relative;
    padding-left: 24px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed);
    display: block;
    padding: 8px 24px;
}

.footer-links a:hover {
    color: #4fd1c5;
    transform: translateX(8px);
}

.social-links { display: flex; flex-direction: column; gap: 12px; }

.social-links a {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.social-links a:hover {
    border-color: #4fd1c5;
    transform: scale(1.05);
}

/* 语言切换 */
.lang-switch {
    background: none;
    border: calc(var(--border-width)) solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-left: 1rem;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
}

.status-icon.true { color: #2ecc71; }
.status-icon.false { color: #e74c3c; }

/* Gmaes.html */
.games-container {
    display: block; /* ✨ 核心修复：覆盖全局 main 继承的 display: flex，恢复块级布局排版 ✨ */
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height) - 300px);
    padding: calc(var(--spacing-base) * 2) 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color var(--transition-speed), transform var(--transition-speed);
    cursor: pointer;
}

.back-home-btn:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.game-card {
    background: white;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.15);
}

.game-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-tags {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.game-inner-tag {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}

.game-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-card-content p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-decoration: none;
}

.play-now-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.game-card:hover .play-now-link {
    text-decoration: none;
}

/* Journey.html */
/* =========================================================
   故事文章頁面專屬樣式 (Journey Section)
   ========================================================= */

main.journey-container {
    display: block !important;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding: calc(var(--spacing-base) * 2) 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 50px;
}

.journey-header h1 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.journey-header .subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.article-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

.article-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.article-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-card h3 i {
    color: var(--primary-color);
}

/* 側邊欄：影片與硬體 */
.video-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-credit {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    text-align: right;
}

.video-credit a { color: var(--primary-color); text-decoration: none; }
.video-credit a:hover { text-decoration: underline; }

.hardware-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.hardware-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 0.95rem;
}

.hardware-list li strong {
    color: var(--secondary-color);
}

.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.github-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 正文區塊 */
.story-card h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.story-card h2:first-child {
    margin-top: 0;
}

.story-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover { text-decoration: underline; }

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

.thanks-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thanks-tag {
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    border: 1px solid #eee;
}

.thanks-tag:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-color: rgba(255, 107, 53, 0.3);
}

/* 響應式佈局 */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        order: 2; /* 在手機上把側邊欄移到下方 */
    }
    .article-content {
        order: 1;
    }
    .journey-header h1 {
        font-size: 2.2rem;
    }
}

/* ✨ 實用工具行動端：雙排小方塊模式 (確保這段放在 styles.css 的最最最底部) ✨ */
@media (max-width: 600px) {
    .link-container {
        grid-template-columns: repeat(2, 1fr); /* 強制分為左右兩列 */
        gap: 12px;
    }
    
    .link-card {
        min-height: 110px;
        padding: 15px;
    }

    .link-card h3 {
        flex-direction: column; /* 讓圖標在上，文字在下 */
        align-items: flex-start;
        gap: 10px;
        font-size: 0.95rem; /* 文字縮小避免折行 */
    }

    .link-card i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .network-status {
        top: 15px;
        right: 10px;
        padding: 2px 6px; /* 縮小右上角延遲標籤的體積 */
    }
    
    .latency-text {
        font-size: 0.65rem;
    }

    /* ✨ 網絡看板行動端：高密度排版 ✨ */
    
    /* 1. 縮小看板整體的內邊距，把空間還給內容 */
    .network-dashboard {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }

    /* 2. 修復標題被擠壓成直排文字的問題（改為上下排列） */
.dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        width: 100% !important; /* 確保頭部佔滿，讓內部的 IP 有空間換行 */
    }

    /* 處理 IPv4 和 IPv6 容器 */
    .ip-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important; 
    }

    /* 強制超長 IPv6 換行，並稍微縮小字體 */
    .highlight-ip {
        font-size: 1rem !important; 
        padding: 6px 10px !important;
        word-break: break-all !important; /* ✨ 魔法：允許超長字串在任意字母間換行 ✨ */
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    /* ✨ 解決單列浪費空間：強制 2 列網格 ✨ */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px 10px !important; 
    }

    /* 適配雙列後的文字大小，避免太擠 */
    .info-item .value {
        font-size: 0.95rem !important;
    }
    
    .safe-score {
        font-size: 1.1rem !important;
    }

    /* 3. 稍微壓縮上半部基礎資訊的間距 */
    .dashboard-grid {
        gap: 12px !important; 
    }

    /* 4. 核心魔法：將冗長的清單轉化為「雙排膠囊方塊」 */
    .detection-grid {
        gap: 25px !important;
    }
    .detection-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 強制分為左右兩列 */
        gap: 8px 12px !important;
    }
    .detection-list li {
        padding: 8px 12px !important;
        border-bottom: none !important; /* 移除原本的虛線底線 */
        background: rgba(0, 0, 0, 0.03) !important; /* 加上淡淡的背景色提升區塊感 */
        border-radius: 8px !important;
        font-size: 0.85rem !important;
    }

    /* 1. 讓名字和身份描述置中，與上方的頭像完美對齊 */
    .right-panel {
        align-items: center !important;
        text-align: center !important;
    }
    
    .name-title h1 {
        font-size: 2rem !important; /* 稍微縮小名字，更精緻 */
    }

    .name-title p {
        font-size: 1rem !important; /* 縮小 ISFP-T 描述 */
    }

    /* 2. 標籤容器置中，並縮小標籤之間的縫隙 */
    .tags {
        justify-content: center !important;
        gap: 8px 10px !important; /* 上下 8px，左右 10px */
    }

    /* 2. 標籤容器：改用強大的 Grid 網格佈局 */
    .tags {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 強制均分成 3 列 */
        gap: 10px !important; /* 標籤之間的間距 */
        width: 100% !important;
        max-width: 340px !important; /* 限制最大寬度，避免在大一點的手機上拉得太開 */
        margin: 0 auto !important; /* 讓整個九宮格置中 */
        justify-content: stretch !important;
    }

    /* 3. 標籤終極瘦身與對齊 */
    .tag {
        padding: 6px 2px !important; /* 取消左右固定內邊距，交由 Grid 自動拉伸 */
        font-size: 0.8rem !important; /* 字體微調，確保 Photography 這種長單字塞得下 */
        text-align: center !important; /* 文字絕對置中 */
        border-width: 1.5px !important;
        white-space: nowrap !important; /* 強制不換行 */
        overflow: hidden !important; 
        text-overflow: ellipsis !important; /* 如果螢幕真的太小，字超出會變成... */
    }
}

/* ================= 全新雙欄音樂播放器 (Apple Podcast 風格) ================= */
.pro-player-layout {
    display: flex;
    gap: 40px;
    background: #ffffff; /* 白色大底板 */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* 輕柔的懸浮陰影 */
    padding: 40px;
    margin-top: 20px;
}

/* 左側控制台 */
.pro-player-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* 確保內容水平絕對置中 */
    justify-content: center;
    text-align: center;
    max-width: 350px;
    border-right: 2px dashed #f0f0f0; /* 中間的灰色虛線分隔 */
    padding-right: 40px; /* 與虛線保持安全距離 */
}

.pro-cover-container {
    width: 260px;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* 加深專輯封面的立體感 */
    margin-bottom: 25px;
}

.pro-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-player-left h3 { margin: 0 0 8px 0; font-size: 1.5rem; color: #333; font-weight: 700; }
.pro-player-left p { margin: 0 0 25px 0; color: #888; font-size: 0.95rem; }

/* 進度條 (完美致敬播客的橘色主題) */
.pro-progress-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #ff5e3a; /* 時間文字改為主題橘色 */
    font-weight: 600;
}

.pro-progress-bar input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #ffe4de; /* 淺橘色軌道 */
    border-radius: 5px;
    outline: none;
}

.pro-progress-bar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ff5e3a; /* 實心橘色拖曳點 */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 94, 58, 0.4);
}

/* 播放按鈕絕對置中與動畫 */
.pro-controls { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* 解決不居中的問題 */
    gap: 25px; 
    width: 100%;
}

.pro-controls button {
    background: none;
    border: none;
    color: #333;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pro-controls button:hover { color: #ff5e3a; transform: scale(1.1); }
.pro-controls .play-btn-main {
    width: 65px; height: 65px;
    background: #ff5e3a;
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 8px 20px rgba(255, 94, 58, 0.3);
}
.pro-controls .play-btn-main:hover { color: white; transform: scale(1.05); }
.pro-controls #pro-like-btn.liked i { font-weight: 900; color: #ff4757; }

/* 右側歌單區塊 */
.pro-player-right {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.playlist-header-controls {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0f0f0;
}

.playlist-header-controls h4 { margin: 0; font-size: 1.1rem; color: #333; }
.playlist-header-controls select {
    background: transparent; color: #555;
    border: none; padding: 5px;
    font-size: 0.9rem; outline: none; cursor: pointer;
    font-weight: 600;
}

.pro-playlist-container {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    display: flex; flex-direction: column; gap: 8px;
    padding-right: 10px; /* 給滾動條留點呼吸空間 */
}

/* 滾動條美化 */
.pro-playlist-container::-webkit-scrollbar { width: 6px; }
.pro-playlist-container::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }

/* 列表項目 (致敬播客的高級質感) */
.pro-playlist-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; border-radius: 12px; cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.pro-playlist-item:hover { background: #f9f9f9; }

/* 播放中狀態 (淡橘底色 + 橘色高光文字) */
.pro-playlist-item.active { 
    background-color: #fff0ed; 
    border: 1px solid #ffe4de;
}
.pro-playlist-item.active .pro-item-title,
.pro-playlist-item.active .pro-item-artist {
    color: #ff5e3a; 
}

.pro-item-info { display: flex; flex-direction: column; gap: 4px; }
.pro-item-title { font-weight: 700; color: #333; font-size: 1rem; transition: 0.2s; }
.pro-item-artist { font-size: 0.85rem; color: #888; transition: 0.2s; }
.pro-item-like { color: #ff4757; font-size: 1.1rem; }

/* 手機版適配 (虛線自動變到底部) */
@media (max-width: 768px) {
    .pro-player-layout { flex-direction: column; padding: 25px; gap: 25px; }
    .pro-player-left { 
        max-width: 100%; 
        border-right: none; 
        border-bottom: 2px dashed #f0f0f0; 
        padding-right: 0; 
        padding-bottom: 25px; 
    }
}