/* 萝莉岛 全新原创样式 - xrphlf.cn */
/* 基础重置与变量 */
:root {
    --primary: #ff6b9d;
    --primary-dark: #e85a8a;
    --secondary: #7c3aed;
    --accent: #fbbf24;
    --dark: #1a1a2e;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #7c3aed 100%);
    --shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
    --radius: 16px;
}

* {
    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;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* 头部导航 - 全新玻璃态设计 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient);
    color: white;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 搜索栏 - 全新设计 */
.search-section {
    margin-top: 70px;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(255, 107, 157, 0.05) 0%, transparent 100%);
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.2);
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    padding: 16px 32px;
    background: var(--gradient);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 15px 0;
    background: rgba(255, 107, 157, 0.03);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--gray);
}

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

.breadcrumb-list li:last-child::after {
    display: none;
}

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

/* Hero区域 - 全新沉浸式设计 */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(124, 58, 237, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 60px 40px;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.45);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 模块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 视频卡片网格 - 全新设计 */
.video-section {
    padding: 80px 0;
}

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.video-tab {
    padding: 10px 24px;
    border-radius: 25px;
    background: white;
    border: 1px solid #eee;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-tab:hover,
.video-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

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

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.15);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-live {
    background: #ef4444;
}

.video-body {
    padding: 18px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

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

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

/* 服务模块 - 卡片网格 */
.services-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fdf4f7 0%, white 100%);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-desc {
    color: var(--gray);
    line-height: 1.7;
}

/* 专家展示 */
.experts-section {
    padding: 80px 0;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.expert-card {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.expert-card:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.12);
}

.expert-avatar {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.expert-info {
    flex: 1;
}

.expert-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

.expert-bio {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.expert-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.expert-btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* 社区模块 */
.community-section {
    padding: 80px 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.community-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.community-content {
    position: relative;
    z-index: 2;
}

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

.community-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

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

.community-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

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

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

.contact-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 12px;
    object-fit: cover;
}

.contact-info {
    color: var(--gray);
    font-size: 0.95rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-desc {
    opacity: 0.7;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

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

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

.footer-qr span {
    font-size: 0.8rem;
    opacity: 0.7;
}

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

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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

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

/* 页面标题区 */
.page-hero {
    padding: 120px 0 60px;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}
