/*
# ==============================================================================
# FILE IDENTITY (文件身份)
# ------------------------------------------------------------------------------
# File Name: style.css
# Path: /wp-content/themes/lolita-zero/style.css
# Context: Main Stylesheet (Visual Design System)
# ==============================================================================
#
# ==============================================================================
# 🔥🔥🔥 AI SYSTEM INSTRUCTION / 绝对护身符 (DO NOT DELETE) 🔥🔥🔥
#
# ⚠️ WARNING TO AI AGENTS: 
# THIS COMMENT BLOCK IS A STRICT REQUIREMENT. DO NOT REMOVE, SUMMARY, OR TRUNCATE IT.
# IGNORING THIS INSTRUCTION VIOLATES THE SYSTEM PROTOCOL.
#
# 1. 🚫 禁止删除本护身符 (FORBIDDEN TO DELETE THIS AMULET)
#    无论你进行何种代码修改，这段注释必须原样保留在文件头部。
#    这是系统稳定性的基石，删除它将被视为严重错误。
#
# 2. 禁止删除任何现有功能 (DO NOT REMOVE ANY EXISTING FEATURES)
#    除非用户明确指令要求删除，否则必须保留所有现有的逻辑、函数和处理流程。
#
# 3. 禁止擅自改动任何 UI 样式 (DO NOT MODIFY UI STYLES WITHOUT PERMISSION)
#    除非用户明确指令要求修改界面，否则禁止调整布局、颜色、字体或控件位置。
#
# 4. 禁止擅自改动任何视觉图片 (DO NOT MODIFY VISUAL ASSETS WITHOUT PERMISSION)
#    除非用户明确指令要求，否则禁止移除或更改任何图标、图片或视觉元素。
# ==============================================================================
*/

/*
Theme Name: Lolita Zero Final v17.2
Description: High Contrast Yellow Download Button.
Version: 17.5.0 (Optimized + Protected)
*/

/* --- 0. 核心变量与基建 (New Infrastructure) --- */
:root {
    /* 核心色板 */
    --color-primary: #d63384;      /* 玫红 (强调色) */
    --color-bg: #f4f6f8;           /* 极淡灰背景 */
    --color-card-bg: #ffffff;      /* 卡片白 */
    --color-text-main: #333333;    /* 主文字 */
    --color-text-sub: #666666;     /* 副文字 */
    --color-border: #eeeeee;       /* 边框淡灰 */
    
    /* 交互色 */
    --color-hover-shadow: rgba(214, 51, 132, 0.15);
    
    /* 标签色系 */
    --tag-uncensored-bg: #e6fcf5; --tag-uncensored-text: #0ca678; /* 无码绿 */
    --tag-censored-bg: #fff0f6;   --tag-censored-text: #e64980;   /* 有码红 */
}

/* 全局重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--color-bg); color: var(--color-text-main); line-height: 1.6; font-size: 15px; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 容器 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* --- 1. Header (顶部导航) --- */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; height: 70px; display: flex; align-items: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; }

.site-logo { font-size: 24px; font-weight: 800; color: var(--color-primary); letter-spacing: -0.5px; margin-right: 40px; flex-shrink: 0; }

.header-center { flex-grow: 1; max-width: 700px; display: flex; flex-direction: column; justify-content: center; }

/* 搜索栏优化 */
.search-form { width: 100%; position: relative; }
.search-input-wrapper { position: relative; display: flex; align-items: center; background: #f1f3f5; border-radius: 8px; padding: 0 10px; transition: background 0.2s, box-shadow 0.2s; border: 1px solid transparent; }
.search-input-wrapper:focus-within { background: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1); }
.search-icon { font-size: 16px; color: #adb5bd; margin-right: 8px; }
.search-field { width: 100%; border: none; background: transparent; padding: 10px 0; font-size: 15px; color: #333; outline: none; }
.compact-search-btn { background: var(--color-primary); color: #fff; border: none; border-radius: 6px; padding: 6px 15px; font-size: 13px; font-weight: 600; cursor: pointer; margin-left: 8px; white-space: nowrap; transition: background 0.2s; }
.compact-search-btn:hover { background: #a61e60; }

/* 热门标签 */
.header-hot-tags { font-size: 12px; color: #868e96; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-label { font-weight: bold; margin-right: 5px; }
.h-tag { display: inline-block; margin-right: 8px; padding: 0 4px; border-radius: 3px; background: #f8f9fa; color: #495057; }
.h-tag:hover { background: #e9ecef; color: var(--color-primary); }
.t-vid { color: #1098ad; }
.t-act { color: #d63384; }

/* 头部右侧功能区 (新增) */
.header-right { margin-left: 20px; flex-shrink: 0; }
.nav-actress-btn {
    display: inline-flex;
    align-items: center;
    background: #fff0f6;
    color: #d63384;
    border: 1px solid #fcc2d7;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.nav-actress-btn .icon { margin-right: 6px; font-size: 16px; }
.nav-actress-btn:hover {
    background: #d63384;
    color: #fff;
    border-color: #d63384;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    transform: translateY(-1px);
}

/* --- 2. Main Layout (内容布局) --- */
.site-main { padding: 30px 0; min-height: 80vh; }

/* 🔥 修复：将 minmax 值改为 380px，强制在宽屏下显示为 3 列 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 25px; }

/* 卡片设计 */
.video-card { background: var(--color-card-bg); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--color-hover-shadow); z-index: 10; }

.video-card-link { display: block; height: 100%; color: inherit; }

/* 封面图容器 */
.video-thumbnail { position: relative; width: 100%; padding-top: 67%; /* 3:2 比例 */ background: #f1f3f5; overflow: hidden; }
.video-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.video-thumbnail img.loaded { opacity: 1; }

/* 信息区 */
.video-info { padding: 15px; }
.video-id-text { font-size: 11px; color: #adb5bd; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 700; }
.video-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; }

/* 🔥 新增：副标题样式 */
.video-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 限制显示1行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 女优标签组 */
.actress-wrapper { position: relative; margin-bottom: 12px; height: 24px; /* 单行高度 */ overflow: hidden; }
.actress-group { display: flex; flex-wrap: wrap; gap: 5px; transition: height 0.3s ease; }
.actress-group.expanded { height: auto; padding-bottom: 20px; /* 给关闭按钮留空间 */ background: #fff; position: absolute; top: 0; left: 0; right: 0; z-index: 5; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 4px; padding: 5px; border: 1px solid #eee; }
.actress-tag { display: inline-block; font-size: 11px; color: #fff; background: #868e96; padding: 2px 8px; border-radius: 10px; transition: background 0.2s; }
.actress-tag:hover { background: var(--color-primary); }

/* 展开按钮 */
.actress-toggle-btn { position: absolute; right: 0; top: 0; background: rgba(255,255,255,0.9); border: none; color: #999; font-size: 10px; cursor: pointer; padding: 2px 6px; display: none; /* JS控制显示 */ }
.actress-toggle-btn.rotated { transform: rotate(180deg); bottom: 2px; top: auto; right: 50%; margin-right: -10px; }

/* 底部元数据 */
.video-meta-list { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #868e96; margin-top: auto; border-top: 1px solid #f1f3f5; padding-top: 10px; }
.list-dl-tag { padding: 2px 6px; border-radius: 4px; font-weight: 600; font-size: 10px; }
.list-dl-tag.uncensored { background: var(--tag-uncensored-bg); color: var(--tag-uncensored-text); }
.list-dl-tag.censored { background: var(--tag-censored-bg); color: var(--tag-censored-text); }

/* --- 3. Single Page (详情页) --- */
.single-hero { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); overflow: hidden; display: flex; gap: 30px; padding: 30px; margin-bottom: 40px; }
.hero-cover { width: 65%; flex-shrink: 0; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.hero-img { width: 100%; height: auto; display: block; }

.hero-info { flex-grow: 1; display: flex; flex-direction: column; }
.entry-header { margin-bottom: 20px; }
.hero-title { font-size: 26px; font-weight: 800; color: #212529; line-height: 1.3; }

.meta-data-list { list-style: none; margin-bottom: 30px; }
.meta-data-list li { display: flex; align-items: center; margin-bottom: 12px; border-bottom: 1px dashed #eee; padding-bottom: 8px; }
.meta-data-list .label { width: 80px; font-weight: bold; color: #868e96; flex-shrink: 0; }
.meta-data-list .value { color: #343a40; font-weight: 500; }

/* 🔥 新增：统一元数据胶囊样式 (类别、导演、片商、番号) */
/* Update: 增加间距防止贴合 */
.meta-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #555;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px; /* 圆角标签 */
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    
    /* 核心修改：增加右侧和底部间距，防止换行时粘连 */
    margin-right: 8px;
    margin-bottom: 8px;
    
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
}
.meta-pill:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(214, 51, 132, 0.2);
}

/* 针对不同类型标签的微调 */
.meta-pill.id-pill { 
    font-family: monospace; 
    letter-spacing: 0.5px; 
    background: #f8f9fa; 
    font-weight: bold;
    border-color: #dee2e6;
}
.meta-pill.studio-pill { 
    color: #2c3e50; 
    background: #f1f3f5;
}
.meta-pill.genre-pill { 
    background: #e3fafc; 
    color: #0c8599; 
    border-color: #99e9f2; 
}
.meta-pill.genre-pill:hover { 
    background: #15aabf; 
    color: #fff; 
    border-color: #15aabf; 
}
.meta-pill.director-pill {
    background: #fff0f6;
    color: #a61e4d;
    border-color: #ffdeeb;
}
.meta-pill.director-pill:hover {
    background: #d63384;
    color: #fff;
}


/* --- 修复：详情页女优区域 (新增) --- */
.hero-cast {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}
.hero-cast .label {
    width: 80px; 
    font-weight: bold;
    color: #868e96;
    flex-shrink: 0;
    padding-top: 6px; /* 对齐 */
}
.actress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
}
.actress-pill {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.actress-pill:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(214, 51, 132, 0.2);
}

/* --- 修复：下载按钮 (Download Button) --- */
/* 🔥 质感增强：方形 + 横向排列 + 饱满填充 */
.download-btn {
    display: flex;
    flex-direction: row; /* 横向排列 */
    align-items: center;
    justify-content: center; /* 内容居中 */
    
    /* 质感升级：使用线性渐变模拟光泽 */
    background: linear-gradient(180deg, #ffeb3b 0%, #ffc107 100%); 
    
    color: #212529;
    border: 1px solid #e0a800; /* 边框 */
    
    /* 修改：方形圆角 */
    border-radius: 6px; 
    
    /* 修改：增加内边距，让按钮看起来更饱满 */
    padding: 15px 25px;
    
    text-decoration: none;
    transition: all 0.2s ease;
    
    /* 3D 效果投影 */
    box-shadow: 
        0 4px 8px rgba(255, 193, 7, 0.3), 
        inset 0 1px 0 rgba(255,255,255, 0.6); 

    margin-top: 20px;
    width: 100%;
    max-width: 350px; /* 稍微加宽一点 */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    /* 间距：让标签和文字之间有空隙，撑满视觉 */
    gap: 15px; 
}

.download-btn:hover {
    /* 悬停反转渐变 */
    background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(255, 193, 7, 0.5),
        inset 0 1px 0 rgba(255,255,255, 0.4); 
}

.download-btn .dl-tag {
    background: #212529;
    color: #ffc107;
    font-size: 14px; /* 字体加大 */
    font-weight: 800;
    padding: 6px 12px; /* 标签加大 */
    border-radius: 4px;
    margin-right: 0; /* 由 gap 控制 */
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    white-space: nowrap;
}
/* 不同类型资源的颜色微调 */
.download-btn .dl-tag.uncensored { background: #198754; color: #fff; } 
.download-btn .dl-tag.censored { background: #dc3545; color: #fff; }

.download-btn .btn-text {
    display: flex;
    flex-direction: row; /* 🔥 文字横向排列 */
    align-items: baseline; /* 基线对齐 */
    line-height: 1;
    text-align: left;
    gap: 8px; /* 中英文之间的间距 */
}

.download-btn .main-text { 
    font-size: 22px; /* 主文字加大 */
    font-weight: 900; /* 最粗 */
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4); 
}

.download-btn .en { 
    font-size: 14px; 
    font-weight: 800; /* 加粗 */
    opacity: 0.8; 
    margin-top: 0; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 预览按钮 */
.btn-preview { background: #000; color: var(--color-accent); }

.btn-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-text .main-text { font-size: 18px; }
.btn-text .en { font-size: 11px; opacity: 0.8; font-weight: 500; text-transform: uppercase; margin-top: 3px; }

/* 预览截图区 */
.single-section { margin-bottom: 50px; }
.section-title { font-size: 22px; border-left: 5px solid var(--color-primary); padding-left: 15px; margin-bottom: 25px; color: #333; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; transition: opacity 0.2s; }
.gallery-item img:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .single-hero { flex-direction: column; padding: 20px; }
    .hero-cover { flex: none; width: 100%; text-align: center; }
    .hero-info { width: 100%; }
    .header-inner { flex-wrap: wrap; padding: 10px; height: auto; }
    .header-center { order: 3; width: 100%; margin-top: 10px; max-width: none; }
    .site-logo { margin-right: auto; }
    /* 移动端女优按钮调整 */
    .header-right { margin-left: 10px; }
    .nav-actress-btn { padding: 6px 12px; font-size: 13px; }
}

/* Footer */
.site-footer { background: #fff; border-top: 1px solid #eee; padding: 40px 0; margin-top: 60px; color: #868e96; font-size: 13px; text-align: center; }