/* 国外十大黄冈推广 - 主样式文件 */
/* 52pingjia.com */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

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

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
}

/* 导航样式 */
.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #fff;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.2);
}

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

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

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ee5a5a, #dd4a4a);
}

/* Banner样式 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.banner-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

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

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    padding: 40px 0 30px;
}

.section-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

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

/* 视频卡片样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    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(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

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

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    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: 12px;
}

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

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

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 0;
}

.expert-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #667eea;
}

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

.expert-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.expert-title {
    color: #667eea;
    font-size: 13px;
    margin-bottom: 10px;
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* 合作品牌 */
.partner-section {
    background: #fff;
    padding: 40px 0;
}

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

.partner-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
}

.review-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

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

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

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

/* FAQ区块 */
.faq-section {
    background: #fff;
    padding: 40px 0;
}

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

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

.faq-question {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    color: #fff;
}

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

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.qrcode-wrap {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.qrcode-item p {
    font-size: 12px;
}

/* 社交分享 */
.social-share {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

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

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

.footer-col a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

/* 分类标签 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.tag {
    padding: 6px 15px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: #fff;
}

/* 内容区块 */
.content-section {
    background: #fff;
    margin: 20px 0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

/* 工具卡片 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tool-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 社区功能 */
.community-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.feature-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

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

.feature-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .nav a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
}

/* 懒加载占位 */
.lazy-load {
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
