/* 三亚高清app - 主样式文件 */
/* 品牌：三亚高清app | 域名：01438.hk */

:root {
    --primary-color: #1a73e8;
    --secondary-color: #ff6b35;
    --accent-color: #00bcd4;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #00bcd4 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

/* 头部导航样式 */
.header {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

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

/* 搜索框样式 */
.search-bar {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    padding: 15px 0;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--gradient-secondary);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

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

/* 横幅轮播样式 */
.banner {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px;
    color: var(--text-light);
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 区块标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.section-title p {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* 视频卡片样式 */
.video-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

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

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

.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: transform 0.3s ease;
}

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

.play-btn {
    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: opacity 0.3s ease;
}

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

.play-btn::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-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    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;
    color: #888;
    font-size: 0.85rem;
}

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

.video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 专家展示区域 */
.experts-section {
    padding: 60px 0;
    background: #fff;
}

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

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

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

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

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

.expert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

.expert-card .bio {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

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

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

/* 社区功能区域 */
.community-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: var(--text-light);
}

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

.community-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.community-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.community-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.community-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.community-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* AI赋能区域 */
.ai-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.ai-feature {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ai-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ai-feature p {
    color: #666;
    line-height: 1.8;
}

/* 合作品牌墙 */
.partners-section {
    padding: 60px 0;
    background: #fff;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 用户评价区域 */
.reviews-section {
    padding: 60px 0;
    background: var(--light-bg);
}

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

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.review-info .rating {
    color: #ffc107;
}

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

/* 联系我们区域 */
.contact-section {
    padding: 60px 0;
    background: #fff;
}

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

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

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    color: #666;
    margin-bottom: 10px;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border-radius: 8px;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    display: none;
}

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

/* 页脚样式 */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 0 20px;
}

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

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

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

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

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

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

.footer-qr-item p {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.social-share a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
    }

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

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

    .banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* 懒加载图片样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* 页面内容区域 */
.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* 工具卡片 */
.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
}
