/* ==========================================================================
   人兽 (corism.cn) - 全站核心样式表
   ========================================================================== */

/* 变量定义 */
:root {
    --primary-color: #ff3366; /* 品牌主色调：动漫红 */
    --primary-dark: #e62e5c;
    --primary-light: #ff668c;
    --secondary-color: #4a90e2; /* 辅助色：科技蓝 */
    --dark-color: #1a1a2e; /* 深色背景 */
    --light-color: #f8f9fa; /* 浅色背景 */
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --white: #ffffff;
    
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

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

/* 布局工具类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

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

.gap-lg { gap: 50px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.d-flex { display: flex; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }

/* 颜色与背景 */
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-white { background-color: var(--white); }

.text-white { color: var(--white); }
.text-light { color: rgba(255,255,255,0.8); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }

/* 边框与阴影 */
.border { border: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-circle { border-radius: 50%; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* 隐藏类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm { padding: 6px 16px; font-size: 14px; }
.btn-lg { padding: 12px 32px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-outline.text-white {
    border-color: var(--white);
    color: var(--white);
}
.btn-outline.text-white:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

/* 头部导航 */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo {
    display: block;
    max-height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-item a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-item.active a, .nav-item a:hover {
    color: var(--primary-color);
}

.nav-item.active a::after, .nav-item a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    transition: var(--transition);
}
.menu-icon::before { content: ''; top: -8px; }
.menu-icon::after { content: ''; top: 6px; }

/* 搜索框区域 */
.search-bar-wrapper {
    background-color: var(--light-color);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
}

.search-btn {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

.hot-searches {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.hot-searches a {
    color: var(--text-muted);
    margin: 0 5px;
}
.hot-searches a:hover { color: var(--primary-color); }

/* 面包屑 */
.breadcrumb-wrapper {
    background-color: var(--light-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
    display: flex;
    font-size: 14px;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: var(--text-muted);
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

/* 首页 Hero Banner */
.hero-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,26,46,0.9) 0%, rgba(26,26,46,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight { color: var(--primary-color); }

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

/* 数据统计 */
.stats-bar {
    display: flex;
    gap: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 通用模块标题 */
.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* 业务卡片 */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 动漫视频卡片 */
.anime-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.anime-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background-color: #000;
}

.anime-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .anime-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.play-icon {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 10px;
}

.play-text {
    color: var(--white);
    font-weight: 500;
}

.anime-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.anime-info {
    padding: 20px;
}

.anime-tags {
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 12px;
    margin-right: 5px;
}

.anime-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* AI功能列表 */
.feature-list {
    margin: 20px 0;
}
.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

/* 专家卡片 */
.expert-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* 合作Logo墙 */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.partner-logo {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    font-weight: bold;
    color: var(--text-muted);
}

/* 加入指南步骤 */
.step-item {
    display: flex;
    margin-bottom: 20px;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 用户评价 */
.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.stars { color: #ffc107; margin-bottom: 10px; }

/* FAQ 手风琴 */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--white);
}
.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    color: var(--primary-color);
}
.faq-answer {
    padding: 0 20px 15px;
    color: var(--text-muted);
    display: none;
}

/* 二维码展示卡片 */
.do6dm7bu {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}
.jz4vox {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-main);
    width: 160px;
}
.jz4vox img {
    width: 100%;
    margin-bottom: 10px;
}

/* 社交分享区域 */
.share-section {
    background-color: var(--light-color);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.share-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.share-title {
    font-weight: 600;
    color: var(--dark-color);
}
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.share-btn:hover { opacity: 0.8; transform: translateY(-2px); }
.share-btn.wechat { background-color: #07c160; }
.share-btn.weibo { background-color: #e6162d; }
.share-btn.douyin { background-color: #1c1c1e; }
.share-btn.bilibili { background-color: #fb7299; }

/* 网站底部 */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { margin-bottom: 20px; }
.footer-desc { margin-bottom: 20px; font-size: 14px; }
.footer-heading {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--primary-color); }
.qr-container { display: flex; gap: 15px; }
.qr-item { text-align: center; font-size: 12px; }
.qr-item img { margin-bottom: 5px; background: white; padding: 5px; border-radius: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 15px;
}
.legal-links a { color: rgba(255,255,255,0.7); }
.separator { margin: 0 10px; color: rgba(255,255,255,0.3); }

/* 表单样式 */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary-color); }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }

/* 动画特效 */
.transform-scale { transform: scale(1.05); }
.icon-large { font-size: 48px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; }
.page-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
}
.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.page-btn:hover:not(.active) { background: var(--light-color); }

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 36px; }
    .stats-bar { flex-wrap: wrap; gap: 20px; justify-content: center; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .mobile-menu-btn { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .main-nav.show { display: block; }
    .nav-list { flex-direction: column; gap: 15px; }
    
    .header-actions { display: none; }
    
    .hero-section { height: auto; padding: 80px 0; text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    .do6dm7bu { justify-content: center; margin-top: 30px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
