/* 9i果冻制作厂蘑菇 - 主样式表 */
/* yzh5.cn */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    min-height: 100vh;
    color: #333;
}

/* 头部导航 */
.header {
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

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

.logo img {
    height: 50px;
    border-radius: 10px;
}

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

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

.nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 搜索框 */
.search-bar {
    background: rgba(255,255,255,0.95);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.search-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
}

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

.search-input:focus {
    border-color: #c44dff;
    box-shadow: 0 0 10px rgba(196,77,255,0.3);
}

.search-btn {
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s;
}

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

/* 主要内容区 */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 32px;
    color: #c44dff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.hero-img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196,77,255,0.4);
}

/* 视频区块 */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    color: #c44dff;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #ff6b9d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196,77,255,0.2);
}

.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;
}

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

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

.play-btn::after {
    content: '';
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 15px;
    color: #333;
    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;
    font-size: 12px;
    color: #999;
}

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

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.expert-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #ff6b9d;
}

.expert-name {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
    color: #ff6b9d;
    margin-bottom: 10px;
}

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

.expert-btn {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b9d, #c44dff);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    margin: 5px;
}

/* 社区功能 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #fff 0%, #ffeef8 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s;
}

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

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

.feature-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: #666;
}

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c44dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.review-name {
    font-size: 14px;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

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

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

.contact-item h4 {
    color: #c44dff;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-top: 10px;
}

/* 页脚 */
.footer {
    background: linear-gradient(90deg, #2d1b4e, #1a1a2e);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff6b9d;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #ff6b9d;
}

.footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

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

.footer-qrcode p {
    font-size: 12px;
    color: #ccc;
}

.copyright {
    font-size: 13px;
    color: #999;
}

.update-time {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #ff6b9d;
    text-decoration: none;
}

/* 内容卡片 */
.content-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.content-card h3 {
    color: #c44dff;
    margin-bottom: 15px;
}

.content-card p {
    color: #666;
    line-height: 1.8;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #ffeef8;
    border-radius: 10px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    color: #c44dff;
}

.faq-item p {
    margin-top: 10px;
    color: #666;
    line-height: 1.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
