/* 《台北娜娜》最新作MV 原创样式表 */
/* 原创配色方案：活力红#E63946 深蓝#1D3557 暖橙#F4A261 浅灰白#F8F9FA 深灰黑#2B2D42 */

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

:root {
    --primary: #E63946;
    --secondary: #1D3557;
    --accent: #F4A261;
    --bg-light: #F8F9FA;
    --text-dark: #2B2D42;
    --white: #FFFFFF;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --shadow: 0 4px 16px rgba(29,53,87,0.10);
    --shadow-hover: 0 8px 32px rgba(29,53,87,0.18);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent);
}

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

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

/* 头部导航 */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.site-logo img {
    height: 42px;
    width: auto;
}

.site-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(230,57,70,0.06);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* 搜索框 */
.search-bar {
    background: var(--secondary);
    padding: 14px 0;
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.search-form input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

.search-form button {
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: #C1121F;
}

/* Banner轮播 */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(29,53,87,0.85));
    color: var(--white);
}

.banner-overlay h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.banner-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 区域标题 */
.section-title {
    text-align: center;
    margin-bottom: 36px;
    padding-top: 50px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-top: 16px;
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 0 50px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

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

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(230,57,70,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 4px;
}

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

.video-info {
    padding: 16px;
}

.video-info h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

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

.video-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(230,57,70,0.08);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 8px;
}

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

.expert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.expert-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-200);
}

.expert-card h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.expert-card .role {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.expert-card .btn-group {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

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

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

/* FAQ */
.faq-section {
    padding: 50px 0;
    background: var(--white);
}

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

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item h4::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

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

.faq-item p {
    margin-top: 12px;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active p {
    display: block;
}

/* 用户评论 */
.reviews-section {
    padding: 50px 0;
}

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

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.review-card .stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 14px;
}

.review-card .reviewer {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* 合作品牌 */
.partner-section {
    padding: 50px 0;
    background: var(--white);
}

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

.partner-logos span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-600);
    padding: 12px 24px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

/* 联系我们 */
.contact-section {
    padding: 50px 0;
}

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

.contact-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-item h4 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 页脚 */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 2;
    display: block;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* 社交分享 */
.share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.share-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.share-bar a:hover {
    background: var(--primary);
    color: var(--white);
}

/* How-To指南 */
.howto-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.howto-step {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.howto-step .step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 14px;
}

.howto-step h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.howto-step p {
    font-size: 0.88rem;
    color: var(--gray-600);
}

/* 面包屑 */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

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

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

.breadcrumb span {
    margin: 0 8px;
}

/* 内页通用 */
.page-hero {
    background: linear-gradient(135deg, var(--secondary), #264653);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.85;
}

.page-content {
    padding: 50px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner-slide {
        height: 240px;
    }

    .banner-overlay h2 {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

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

    .search-form {
        max-width: 100%;
    }
}

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

/* 懒加载占位 */
img[data-src] {
    background: var(--gray-200);
    min-height: 120px;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
