/* 
 * 海角社区 原创主题样式表
 * 颜色主题：粉紫色系（糖心主题）搭配深色科技感
 */

:root {
    --primary-color: #ff4d85; /* 糖心粉 */
    --secondary-color: #8a2be2; /* 科技紫 */
    --dark-bg: #121212;
    --light-bg: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 60px 0;
}

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

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

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

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

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 77, 133, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 133, 0.6);
    color: var(--text-white);
}

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

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

.btn-small {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--text-white);
}

/* 头部导航 */
.header {
    background-color: var(--text-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* 搜索框 */
.search-bar-wrapper {
    background-color: var(--dark-bg);
    padding: 15px 0;
}

.search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: var(--text-white);
    border-radius: 30px;
    overflow: hidden;
}

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

.search-box button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* Banner区域 */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

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

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

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.banner-title {
    color: var(--text-white);
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-desc {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
}

/* 核心业务卡片 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.business-card {
    background: var(--text-white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.business-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.icon-box {
    font-size: 48px;
    margin-bottom: 20px;
}

.business-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.business-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 视频卡片 (H5 Video Hover Effect) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

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

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

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background-color: #000;
}

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

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 77, 133, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

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

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.video-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: var(--light-bg);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 专家团队 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expert-card {
    background: var(--text-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.expert-info {
    padding: 20px;
}

.expert-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

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

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

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

/* 评论口碑 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.review-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 15px;
}

.review-author {
    color: var(--text-light);
    font-weight: bold;
    text-align: right;
}

/* FAQ 区域 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    margin: 0;
}

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

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

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
    border-top: 1px solid var(--border-color);
}

.toggle-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

/* 加入指南 */
.join-guide {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.guide-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(255, 77, 133, 0.3);
}

.guide-step h3 {
    margin-bottom: 10px;
}

.guide-step p {
    color: var(--text-light);
    font-size: 14px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logo {
    padding: 15px 30px;
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-weight: bold;
    color: var(--text-light);
}

/* 底部区域 */
.footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-info {
    flex: 2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.social-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #333;
}

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

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

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

.links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

.qrcode {
    display: flex;
    gap: 20px;
}

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

.qr-box {
    width: 100px;
    height: 100px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* 内页样式 */
.inner-page .page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/banner.jpg') center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
}

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

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-main);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-item {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
}

.page-item.active, a.page-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-item.next {
    width: auto;
    padding: 0 15px;
}

/* 关于我们页面 */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.about-image {
    flex: 1;
}

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

.rounded {
    border-radius: 10px;
}

.shadow {
    box-shadow: var(--shadow);
}

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

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--text-white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
    }
}
