/* 海角社区 - 全新原创样式表 v2.0 */
/* 域名: wjilq.cn */

/* ========== 品牌色彩系统 ========== */
:root {
    --brand-pink: #ff6b9d;
    --brand-coral: #ff9a56;
    --brand-purple: #a855f7;
    --brand-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff9a56 50%, #a855f7 100%);
    --brand-gradient-alt: linear-gradient(45deg, #ff6b9d 0%, #a855f7 100%);
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-white: #ffffff;
    --text-light: #e0e0e8;
    --text-muted: #9090a8;
    --border-subtle: rgba(255,255,255,0.08);
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(255,107,157,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--brand-pink);
}

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

ul, ol {
    list-style: none;
}

/* ========== 布局容器 ========== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 头部导航 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,20,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

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

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

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

.main-nav a {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-white);
    background: rgba(255,107,157,0.12);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
}

/* ========== 搜索栏 ========== */
.search-section {
    background: var(--bg-secondary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.search-input {
    width: 100%;
    padding: 14px 56px 14px 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-normal);
}

.search-input:focus {
    border-color: var(--brand-pink);
    box-shadow: var(--shadow-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--brand-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-glow);
}

/* ========== Hero区域 ========== */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

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

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

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,20,0.6) 0%, var(--bg-primary) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 按钮组件 ========== */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: white;
}

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

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

/* ========== 区块样式 ========== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2,
.section-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 视频卡片 ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

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

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

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 68px;
    height: 68px;
    background: rgba(255,107,157,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 22px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.85);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.video-info {
    padding: 22px;
}

.video-info h4 {
    font-size: 1.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-stats {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ========== 分类标签 ========== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.tag {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
}

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

/* ========== 功能模块 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-pink);
    box-shadow: var(--shadow-glow);
}

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

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== 专家展示 ========== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.expert-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: var(--transition-normal);
}

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

.expert-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--brand-pink);
}

.expert-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.expert-title {
    color: var(--brand-pink);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.expert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.expert-actions a {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    background: var(--bg-card-hover);
    color: var(--text-muted);
}

.expert-actions a:hover {
    background: var(--brand-pink);
    color: white;
}

/* ========== 用户评价 ========== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border-left: 4px solid var(--brand-pink);
}

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

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}

.review-user h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-white);
}

.review-user span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 14px;
}

.review-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========== 合作品牌 ========== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.partner-item {
    background: var(--bg-card);
    padding: 20px 40px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.partner-item:hover {
    color: var(--brand-pink);
    transform: scale(1.05);
}

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

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--brand-pink);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 28px 22px;
    color: var(--text-muted);
    display: none;
    line-height: 1.8;
}

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

/* ========== 联系信息 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

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

.contact-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--brand-pink);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.contact-card img {
    max-width: 140px;
    margin: 16px auto 0;
    border-radius: var(--radius-sm);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-secondary);
    padding: 72px 0 32px;
    margin-top: 80px;
    border-top: 1px solid var(--border-subtle);
}

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

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--brand-pink);
    transform: translateY(-4px);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-white);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-pink);
}

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

.footer-qr img {
    width: 100px;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom a:hover {
    color: var(--brand-pink);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 18px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.breadcrumb span {
    margin: 0 12px;
}

/* ========== 分享按钮 ========== */
.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition-normal);
}

.share-btn:hover {
    transform: scale(1.12);
    color: white;
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #000000; }
.share-bilibili { background: #00a1d6; }

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social,
    .footer-qr {
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 60px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-header h2,
    .section-header h3 {
        font-size: 1.8rem;
    }
}

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

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

/* ========== 懒加载占位 ========== */
.lazy-placeholder {
    background: var(--bg-card-hover);
    min-height: 200px;
}
