/* 猎奇品牌网站 - 全局样式表 */

:root {
    --primary-color: #10b981;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    font-size: 16px;
}

/* 响应式容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

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

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

nav a:hover::after {
    width: 100%;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 8px 15px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: var(--shadow);
    background: #fff;
    border: 1px solid var(--primary-color);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
}

/* Banner 区域 */
.banner {
    background-color: #064e3b;
    background-image: linear-gradient(90deg, rgba(2, 44, 34, 0.88), rgba(5, 150, 105, 0.46)), url('/images/hero-plant-video.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    min-height: 520px;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

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

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

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

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

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.video-category {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 部分标题 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

/* FAQ 部分 */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 用户评论 */
.comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.user-comment {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.user-comment:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

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

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

.avatar-initial {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.user-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.rating {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.comment-content {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* 专家卡片 */
.expert-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.expert-avatar {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

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

.expert-info {
    padding: 25px;
}

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

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

.expert-specialty {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.expert-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.expert-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.achievement {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.btn-contact,
.btn-portfolio {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.btn-contact:hover {
    background: var(--secondary-color);
}

.btn-portfolio {
    background: var(--light-bg);
    color: var(--primary-color);
}

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

/* 合作品牌 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 页脚 */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-qrcode h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.qrcode-img {
    width: 120px;
    height: 120px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 社交分享 */
.social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        gap: 15px;
    }

    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .search-box {
        width: 200px;
    }

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

    .section-title {
        font-size: 24px;
    }

    .expert-card {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .banner-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 10px 0;
    }

    nav ul {
        gap: 10px;
        font-size: 14px;
    }

    .banner {
        min-height: 420px;
        padding: 56px 15px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 14px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 150px;
        font-size: 12px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 打印样式 */
@media print {
    header,
    footer,
    .social-share,
    .banner-buttons {
        display: none;
    }
}


/* ===== 面包屑导航 ===== */
.breadcrumb {
    background: #f8fafc;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-light);
    font-weight: bold;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb li:last-child a {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== 发布日期 ===== */
.video-publish-date,
.article-publish-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.update-date {
    background: #fef3c7;
    border-left: 4px solid var(--accent-color);
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #92400e;
}

/* ===== 相关推荐 ===== */
.related-links {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
}

.related-links h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.related-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-links li {
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-links li:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.related-links a:hover {
    color: var(--secondary-color);
}

/* ===== 专家资质 ===== */
.expert-credentials {
    background: #f0fdf4;
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.expert-credentials h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #065f46;
}

.expert-credentials ul {
    list-style: none;
}

.expert-credentials li {
    font-size: 13px;
    color: #047857;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.expert-credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== 视频卡片增强 ===== */
.video-card {
    position: relative;
}

.video-card .video-publish-date {
    display: block;
    margin-top: 8px;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .breadcrumb ol {
        font-size: 12px;
    }

    .related-links ul {
        grid-template-columns: 1fr;
    }

    .expert-credentials {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 8px 0;
        margin-bottom: 16px;
    }

    .breadcrumb a {
        font-size: 12px;
    }

    .update-date {
        padding: 10px 12px;
        font-size: 12px;
    }

    .related-links {
        padding: 16px;
        margin: 24px 0;
    }

    .related-links h3 {
        font-size: 16px;
    }
}
