/* Zen Template - 极简禅意风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --zen-bg: #faf9f7;
    --zen-surface: #ffffff;
    --zen-text: #2c2c2c;
    --zen-text-light: #6b6b6b;
    --zen-border: #e8e6e3;
    --zen-accent: #8b7355;
    --zen-accent-hover: #6b5a45;
    --zen-shadow: rgba(0, 0, 0, 0.04);
    --zen-shadow-hover: rgba(0, 0, 0, 0.08);
}

body.zen-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--zen-bg);
    color: var(--zen-text);
    line-height: 1.6;
    min-height: 100vh;
}

.zen-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.zen-header {
    background: var(--zen-surface);
    border-bottom: 1px solid var(--zen-border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.zen-header .zen-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.zen-logo {
    font-size: 24px;
    font-weight: 300;
    color: var(--zen-text);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.zen-logo:hover {
    color: var(--zen-accent);
}

.zen-nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.zen-nav-link {
    color: var(--zen-text-light);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
}

.zen-nav-link:hover {
    color: var(--zen-accent);
}

.zen-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--zen-accent);
    transition: width 0.3s;
}

.zen-nav-link:hover::after {
    width: 100%;
}

.zen-search {
    display: flex;
    gap: 8px;
}

.zen-search-input {
    padding: 8px 16px;
    border: 1px solid var(--zen-border);
    border-radius: 24px;
    font-size: 14px;
    width: 200px;
    background: var(--zen-bg);
    transition: all 0.3s;
}

.zen-search-input:focus {
    outline: none;
    border-color: var(--zen-accent);
    width: 240px;
}

.zen-search-btn {
    padding: 8px 20px;
    background: var(--zen-accent);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.zen-search-btn:hover {
    background: var(--zen-accent-hover);
}

/* Main */
.zen-main {
    padding: 48px 0;
}

.zen-section {
    margin-bottom: 64px;
}

.zen-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.zen-section-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--zen-text);
    letter-spacing: 1px;
}

.zen-more-link {
    color: var(--zen-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.zen-more-link:hover {
    color: var(--zen-accent);
}

/* Grid */
.zen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* Card */
.zen-card {
    background: var(--zen-surface);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px var(--zen-shadow);
}

.zen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--zen-shadow-hover);
}

.zen-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.zen-card-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--zen-bg);
}

.zen-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.zen-card:hover .zen-card-image img {
    transform: scale(1.05);
}

.zen-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.zen-card:hover .zen-card-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.zen-play-icon {
    color: white;
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.3s;
}

.zen-card:hover .zen-play-icon {
    opacity: 1;
}

.zen-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--zen-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.zen-card-content {
    padding: 16px;
}

.zen-card-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--zen-text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zen-card-time {
    font-size: 13px;
    color: var(--zen-text-light);
}

/* Detail */
.zen-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.zen-detail-poster {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--zen-shadow);
}

.zen-detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.zen-detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zen-detail-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--zen-text);
    line-height: 1.3;
}

.zen-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.zen-meta-item {
    color: var(--zen-text-light);
    font-size: 14px;
    padding: 6px 12px;
    background: var(--zen-bg);
    border-radius: 16px;
}

.zen-detail-desc {
    color: var(--zen-text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* Player */
.zen-player {
    margin: 48px 0;
}

.zen-player-controls {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zen-source-list,
.zen-episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zen-source-btn,
.zen-episode-btn {
    padding: 8px 16px;
    background: var(--zen-bg);
    border: 1px solid var(--zen-border);
    border-radius: 20px;
    color: var(--zen-text);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.zen-source-btn:hover,
.zen-episode-btn:hover {
    background: var(--zen-accent);
    color: white;
    border-color: var(--zen-accent);
}

.zen-source-btn.active,
.zen-episode-btn.active {
    background: var(--zen-accent);
    color: white;
    border-color: var(--zen-accent);
}

/* Pagination */
.zen-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.zen-page-btn,
.zen-page-num {
    padding: 8px 16px;
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: 8px;
    color: var(--zen-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.zen-page-btn:hover,
.zen-page-num:hover {
    background: var(--zen-accent);
    color: white;
    border-color: var(--zen-accent);
}

.zen-page-num.active {
    background: var(--zen-accent);
    color: white;
    border-color: var(--zen-accent);
}

.zen-page-ellipsis {
    padding: 8px 4px;
    color: var(--zen-text-light);
}

/* Page Header */
.zen-page-header {
    margin-bottom: 32px;
}

.zen-page-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--zen-text);
    margin-bottom: 8px;
}

.zen-page-count {
    color: var(--zen-text-light);
    font-size: 14px;
}

/* Empty */
.zen-empty {
    text-align: center;
    padding: 64px 0;
    color: var(--zen-text-light);
}

/* Footer */
.zen-footer {
    background: var(--zen-surface);
    border-top: 1px solid var(--zen-border);
    padding: 32px 0;
    margin-top: 64px;
}

.zen-footer-text {
    text-align: center;
    color: var(--zen-text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .zen-header .zen-container {
        flex-direction: column;
        gap: 16px;
    }

    .zen-nav {
        gap: 16px;
    }

    .zen-search {
        width: 100%;
    }

    .zen-search-input {
        flex: 1;
    }

    .zen-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .zen-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .zen-section-title {
        font-size: 24px;
    }
}

