/*
Theme Name: ASEA鱼塘会
Theme URI: https://asea.yth1688.cn
Description: ASEA鱼塘会 - 真实氧化还原见证视频网站主题
Version: 4.0
Author: ASEA鱼塘会
Text Domain: asea-yutanghui
*/

/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 顶部导航栏 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.3em;
    font-weight: 800;
    color: #1a3a5c;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #1a3a5c, #2b5f8a);
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f4f8;
    border-radius: 20px;
    font-size: 0.9em;
    color: #1a3a5c;
    font-weight: 500;
}

.nav-user:hover {
    background: #e2e8f0;
}

/* ===== 第1部份：主视频区域 ===== */
.section-hero {
    background: #fff;
    padding: 60px 20px 50px;
    text-align: center;
}

.section-hero h1 {
    font-size: 2.2em;
    font-weight: 900;
    color: #1a3a5c;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section-hero .subtitle {
    font-size: 1.05em;
    color: #666;
    margin-bottom: 35px;
    font-weight: 400;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.video-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 30px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5f8a 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.video-placeholder .play-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.video-placeholder p {
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-placeholder span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
}

/* ===== 第2部份：分类导航区域 ===== */
.section-categories {
    background: #f0f4f8;
    padding: 60px 20px;
    text-align: center;
}

.section-categories h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.section-categories .cat-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 35px;
}

.categories-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 10px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    min-height: 80px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.category-card .cat-name {
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

.category-card .cat-count {
    font-size: 0.75em;
    color: #999;
    margin-top: 4px;
}

.category-card .cat-color-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 10px 10px;
}

/* ===== 第3部份：链接区域 ===== */
.section-links {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
}

.section-links h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 25px;
}

.links-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s;
}

.link-card:hover {
    background: #e8f4fd;
    border-color: #b8daff;
}

.link-card .link-text {
    font-weight: 500;
    color: #2c3e50;
}

/* ===== 第4部份：个人信息区域 ===== */
.section-profile {
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5f8a 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.profile-info .name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-info .bio {
    font-size: 0.95em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.profile-info .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 12px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.9);
}

.profile-info .book-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #fff;
    color: #1a3a5c;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-info .book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.9);
    transition: background 0.2s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== 页脚 ===== */
.section-footer {
    background: #0f2439;
    padding: 25px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-footer .copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.8em;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
    color: #fff;
}

.footer-links span {
    color: rgba(255,255,255,0.3);
}

/* ===== 分类视频列表页 ===== */
.category-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-page h1 {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a3a5c;
    text-align: center;
    margin-bottom: 6px;
}

.category-page .video-count {
    text-align: center;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 30px;
}

.category-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2980b9;
    font-size: 0.9em;
    margin-bottom: 25px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.category-page .back-link:hover {
    background: #e8f4fd;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.video-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2b7bb9, #1a5a8a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card .thumb .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

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

.video-card .video-title {
    padding: 14px 16px;
    font-size: 0.9em;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

/* ===== 分页 ===== */
.pagination {
    text-align: center;
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

.pagination a {
    background: #fff;
    color: #2980b9;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #2980b9;
    color: #fff;
    border-color: #2980b9;
}

.pagination .current {
    background: #2980b9;
    color: #fff;
    border: 1px solid #2980b9;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1em;
}

/* ===== 单视频播放页 ===== */
.single-video-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.single-video-page .video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    background: #000;
}

.single-video-page .video-player iframe,
.single-video-page .video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.single-video-page h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 12px;
}

.single-video-page .video-meta {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-video-page .video-description {
    color: #555;
    line-height: 1.8;
    font-size: 0.95em;
}

/* ===== VIP权限提示 ===== */
.vip-required-overlay {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1a3a5c, #2b5f8a);
}

.vip-required-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.vip-required-content .lock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.vip-required-content h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.vip-required-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.vip-required-content .vip-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #f39c12;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s;
}

.vip-required-content .vip-btn:hover {
    transform: scale(1.05);
}

/* ===== 登录页面样式 ===== */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5f8a 100%);
    padding: 20px;
}

/* ===== 响应式适配 ===== */

/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-hero h1 {
        font-size: 1.8em;
    }
}

/* 手机 (小于 768px) */
@media (max-width: 768px) {
    .site-header .header-inner {
        padding: 10px 16px;
    }
    
    .logo-text {
        font-size: 1.1em;
    }
    
    .section-hero {
        padding: 40px 16px 35px;
    }
    
    .section-hero h1 {
        font-size: 1.5em;
    }
    
    .section-hero .subtitle {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    
    .section-categories {
        padding: 40px 12px;
    }
    
    .section-categories h2 {
        font-size: 1.4em;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 14px 8px 12px;
        min-height: 65px;
    }
    
    .category-card .cat-name {
        font-size: 0.8em;
    }
    
    .category-card .cat-count {
        font-size: 0.65em;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-card .video-title {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    
    .section-profile {
        padding: 40px 16px;
    }
    
    .profile-info .name {
        font-size: 1.3em;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
    
    .single-video-page {
        padding: 20px 16px;
    }
    
    .single-video-page h1 {
        font-size: 1.2em;
    }
    
    .category-page h1 {
        font-size: 1.4em;
    }
}

/* 小手机 (小于 480px) */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 12px 6px 10px;
        min-height: 55px;
    }
    
    .category-card .cat-name {
        font-size: 0.75em;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== WordPress Admin Bar 兼容 ===== */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ===== 隐藏WordPress默认样式 ===== */
.wp-block-post-content,
.entry-content {
    max-width: 100%;
}
