/* 2048核基地 - 主样式表 */
/* yiliaohr.cn */

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

:root {
    --primary-color: #e91e8c;
    --secondary-color: #9c27b0;
    --accent-color: #7c4dff;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, #e91e8c 0%, #9c27b0 50%, #7c4dff 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gradient-primary);
    color: var(--text-light);
}

/* 搜索框 */
.search-bar {
    background: rgba(255,255,255,0.1);
    padding: 15px 0;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 500px;
    max-width: 80%;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 16px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.3);
}

.search-btn {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero区域 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--text-light);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 18px;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.4);
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* 视频卡片 */
.video-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 140, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
}

.video-stats {
    display: flex;
    gap: 15px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类标签 */
.category-section {
    padding: 60px 0;
    background: var(--dark-bg);
}

.category-section .section-title h2,
.category-section .section-title p {
    color: var(--text-light);
}

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

.category-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    opacity: 0.8;
}

/* 专家展示 */
.expert-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.expert-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.expert-avatar {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.expert-info {
    padding: 20px;
}

.expert-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.expert-title {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.expert-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.expert-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.expert-btn.primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.expert-btn.secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.expert-btn:hover {
    transform: translateY(-2px);
}

/* AI赋能区块 */
.ai-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ai-section .section-title h2,
.ai-section .section-title p {
    color: var(--text-light);
}

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

.ai-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.ai-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.ai-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

.ai-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.ai-card p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

/* 社区功能 */
.community-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.community-banner {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.community-feature {
    background: var(--text-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.community-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.community-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
}

.community-feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.community-feature p {
    font-size: 14px;
    color: #666;
}

/* 合作伙伴 */
.partner-section {
    padding: 60px 0;
    background: var(--text-light);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logos img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* 用户评价 */
.review-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

.review-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

.review-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* FAQ区块 */
.faq-section {
    padding: 60px 0;
    background: var(--text-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    padding-top: 10px;
}

/* 联系我们 */
.contact-section {
    padding: 60px 0;
    background: var(--dark-bg);
    color: var(--text-light);
}

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

.contact-card {
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.contact-qr {
    width: 120px;
    height: 120px;
    margin: 15px auto;
    border-radius: 8px;
}

/* 页脚 */
.footer {
    background: #0d0d1a;
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-qr {
    display: flex;
    gap: 20px;
}

.footer-qr-item {
    text-align: center;
}

.footer-qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.footer-qr-item p {
    font-size: 12px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-share a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--gradient-primary);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: var(--text-light);
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: #666;
}

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

.breadcrumb-list .current {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 100%;
    }
}

/* 图片懒加载占位 */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 页面内容区 */
.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}


/* 面包屑导航 */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #999;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    color: #666;
}

/* 社区美图展示 */
.gallery-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
}

/* 专家资质徽章 */
.expert-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.credential-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.expert-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-expert, .btn-works {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-expert {
    background: var(--gradient-primary);
    color: white;
}

.btn-works {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-expert:hover, .btn-works:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* AI场景设计展示 */
.ai-showcase {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.ai-showcase img {
    width: 100%;
    height: auto;
}

/* 响应式面包屑 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb ol {
        font-size: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .expert-credentials {
        justify-content: center;
    }
    
    .expert-actions {
        flex-direction: column;
    }
}
