:root {
    --primary-color: #21ba45; /* 更沉稳的佛性绿，更显清净 */
    --accent-color: #16ab39;
    --text-color: #2c3e50;
    --border-radius: 16px;
    --spacing: 16px;
    --blur-radius: 20px; /* 加深桌面端模糊 */
    --mobile-blur-radius: 15px; /* 加深移动端模糊 */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --mobile-spacing: 12px;
    --glow-color: rgba(33, 186, 69, 0.4); /* 按钮发光颜色 */
}

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

body {
    font-family: "PingFang SC", "SF Pro SC", "SF Pro Text", "SF Pro Icons", 
                 "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", 
                 sans-serif;
    /* 更柔和的绿白渐变，营造清凉感 */
    background: linear-gradient(135deg, #eafef0 0%, #d9f8df 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing) * 1.5);
    position: relative;
    z-index: 1;
}

/* 弱化装饰，突出清净感 */
.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(33, 186, 69, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(33, 186, 69, 0.1);
    font-size: 1.8em;
    line-height: 1.3;
    font-weight: 500; /* 字体更细，显清净 */
}

.podcast-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing) * 1.2);
}

/* 页面加载时的上滑动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-card {
    /* 核心调整：降低不透明度，让背景绿色透出来，加深模糊 */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(var(--blur-radius));
    -webkit-backdrop-filter: blur(var(--blur-radius));
    border-radius: var(--border-radius);
    padding: var(--spacing);
    box-shadow: var(--shadow);
    /* 浅色边框，强化毛玻璃质感 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
    opacity: 0;
    /* 卡片悬浮灵动效果基础 */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

/* 卡片悬浮：布灵布灵放大+阴影强化 */
.podcast-card:hover {
    transform: translateY(-6px) scale(1.02); /* 轻微上移+放大，更灵动 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.6); /* 悬浮时稍亮，突出焦点 */
}

/* 为前10个卡片设置动画延迟，足够日常使用 */
.podcast-card:nth-child(1) { --animation-order: 1; }
.podcast-card:nth-child(2) { --animation-order: 2; }
.podcast-card:nth-child(3) { --animation-order: 3; }
.podcast-card:nth-child(4) { --animation-order: 4; }
.podcast-card:nth-child(5) { --animation-order: 5; }
.podcast-card:nth-child(6) { --animation-order: 6; }
.podcast-card:nth-child(7) { --animation-order: 7; }
.podcast-card:nth-child(8) { --animation-order: 8; }
.podcast-card:nth-child(9) { --animation-order: 9; }
.podcast-card:nth-child(10) { --animation-order: 10; }

.podcast-header {
    display: flex;
    gap: var(--spacing);
    margin-bottom: var(--spacing);
    flex-shrink: 0;
}

.podcast-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 卡片悬浮时，封面也轻微放大 */
.podcast-card:hover .podcast-cover {
    transform: scale(1.05);
}

.podcast-info {
    flex: 1;
}

.podcast-title {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.podcast-description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.podcast-meta {
    font-size: 0.8em;
    color: #777;
}

.subscribe-section {
    margin-top: auto;
    flex-shrink: 0;
}

.feed-url-section {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-url {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(200, 200, 200, 0.3); /* 更浅的边框，显通透 */
    border-radius: 6px;
    font-size: 0.85em;
    color: #666;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: text;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.feed-url:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px var(--glow-color);
}

.subscribe-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    /* 按钮发光效果基础 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

/* 按钮点击/悬浮发光效果 */
.subscribe-button:hover, .subscribe-button:active {
    background-color: var(--accent-color);
    /* 外层发光 */
    box-shadow: 0 0 12px var(--glow-color), 0 4px 12px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* 按钮内部光效（点击时更明显） */
.subscribe-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
    opacity: 0;
}

.subscribe-button:hover::after {
    opacity: 1;
}

@keyframes shine {
    from {
        transform: rotate(30deg) translateX(-100%);
    }
    to {
        transform: rotate(30deg) translateX(100%);
    }
}

/* 复制按钮单独配色与发光 */
.copy-button {
    background: #8d99a6;
    box-shadow: 0 2px 8px rgba(141, 153, 166, 0.2);
    --glow-color: rgba(141, 153, 166, 0.4);
}

.copy-button:hover, .copy-button:active {
    background: #718096;
    box-shadow: 0 0 12px var(--glow-color), 0 4px 12px rgba(141, 153, 166, 0.3);
}

/* 订阅指导按钮单独配色与发光 */
.guide-button {
    background: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
    --glow-color: rgba(49, 130, 206, 0.4);
}

.guide-button:hover, .guide-button:active {
    background: #2b6cb0;
    box-shadow: 0 0 12px var(--glow-color), 0 4px 12px rgba(49, 130, 206, 0.3);
}

.loading {
    text-align: center;
    padding: 2em;
    color: #666;
}

/* 移动端适配：强化模糊+优化布局 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.4em;
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0 8px;
        font-weight: 500;
    }

    .container {
        padding: var(--mobile-spacing);
    }

    .podcast-list {
        grid-template-columns: 1fr;
        gap: var(--mobile-spacing);
    }

    .podcast-card {
        padding: var(--mobile-spacing);
        backdrop-filter: blur(var(--mobile-blur-radius));
        -webkit-backdrop-filter: blur(var(--mobile-blur-radius));
        background: rgba(255, 255, 255, 0.6);
        /* 移动端悬浮效果稍弱，避免误触 */
        transition: all 0.3s ease;
    }

    .podcast-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .podcast-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--mobile-spacing);
    }

    .podcast-cover {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: contain;
        background: rgba(234, 254, 240, 0.6);
        border-radius: 8px;
    }

    .podcast-title {
        font-size: 1.1em;
        text-align: center;
        font-weight: 500;
    }

    .podcast-description {
        font-size: 0.85em;
        text-align: center;
    }

    .podcast-meta {
        font-size: 0.75em;
        text-align: center;
    }

    .subscribe-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .feed-url-section {
        flex-direction: column;
        gap: 6px;
    }

    .feed-url {
        width: 100%;
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .copy-button {
        width: 100%;
        min-width: unset;
        font-size: 0.85em;
        padding: 4px 8px;
    }

    .subscribe-button {
        font-size: 0.85em;
        padding: 4px 8px;
        min-height: 28px;
    }
}