/* 51吃瓜网网站样式 - hbzyqtsb.com */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--gradient);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    height: 50px;
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Search Box */
.search-box {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Video Grid */
.video-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

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

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

/* Expert Section */
.expert-section {
    background: var(--white);
    padding: 60px 0;
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expert-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-color);
    transition: transform 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
}

.expert-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.expert-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.expert-title {
    color: #666;
    margin-bottom: 15px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.expert-btn:hover {
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #2c2c2c;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

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

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--white);
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    nav ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}
