/* 海角 - 主样式文件 */
/* 品牌色彩系统 */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FF8E72;
    --accent-color: #9B59B6;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #FF8E72 100%);
    --gradient-secondary: linear-gradient(135deg, #9B59B6 0%, #FF6B9D 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

/* 搜索栏 */
.search-bar {
    background: var(--light-color);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.search-box {
    display: flex;
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.search-box input {
    flex: 1;
    padding: 12px 25px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-box button {
    padding: 12px 30px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    opacity: 0.9;
}

/* 英雄区域 */
.hero {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* 视频卡片区域 */
.video-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

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

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

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

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

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

.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(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--primary-color);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

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

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

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF0000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

/* 社区区域 */
.community-section {
    padding: 80px 0;
    background: var(--light-color);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 专家区域 */
.expert-section {
    padding: 80px 0;
}

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

.expert-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-align: center;
    padding: 30px;
    transition: var(--transition);
}

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

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-color);
}

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

.expert-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expert-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

/* FAQ区域 */
.faq-section {
    padding: 80px 0;
    background: var(--light-color);
}

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

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系区域 */
.contact-section {
    padding: 80px 0;
}

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

.contact-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

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

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

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

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

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

.qr-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

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

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.share-weixin {
    background: #07C160;
    color: #fff;
}

.share-weibo {
    background: #E6162D;
    color: #fff;
}

.share-douyin {
    background: #000;
    color: #fff;
}

.share-bilibili {
    background: #FB7299;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: var(--light-color);
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 内页样式 */
.page-header {
    background: var(--gradient-primary);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

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

/* 标签 */
.tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin: 5px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2000;
    padding: 80px 30px 30px;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-qr {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-text h1 {
        font-size: 26px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* 懒加载占位 */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
