/* 元气小妹 - 原创样式表 */
/* 原创配色方案：樱花粉+梦幻紫 */

:root {
    --primary: #E8547C;
    --primary-dark: #C93D63;
    --secondary: #6C5CE7;
    --accent: #FF6B9D;
    --bg-light: #FFF5F7;
    --bg-dark: #2D1B4E;
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-border: #EAEAEA;
    --gradient-primary: linear-gradient(135deg, #E8547C 0%, #6C5CE7 100%);
    --gradient-hero: linear-gradient(135deg, rgba(232,84,124,0.9) 0%, rgba(108,92,231,0.85) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
}

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

a:hover {
    color: var(--secondary);
}

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

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

/* Header */
.site-header {
    background: var(--text-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

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

.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-light);
    color: var(--primary);
}

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

/* Search Bar */
.search-bar {
    background: var(--gray-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
}

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

.search-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--gray-border);
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--text-white);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,84,124,0.1);
}

.search-wrapper button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.search-wrapper button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    padding: 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--text-white);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--secondary);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--text-white);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

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

.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.section-dark .section-title h2 {
    color: var(--text-white);
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.8);
}

/* Video Card Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

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

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

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

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(232,84,124,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

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

.video-info {
    padding: 16px;
}

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

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

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

.video-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    margin-top: 8px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--text-white);
    padding: 30px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* Expert Section */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--text-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--primary);
}

.expert-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.expert-card .role {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.faq-item {
    background: var(--text-white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--text-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.review-stars {
    color: #FFB800;
    margin-bottom: 12px;
    font-size: 16px;
}

.review-text {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    font-style: italic;
}

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

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

.review-author-info {
    font-size: 13px;
}

.review-author-info strong {
    display: block;
    color: var(--text-main);
}

.review-author-info span {
    color: var(--text-light);
}

/* Partners */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.partner-logo {
    padding: 16px 24px;
    background: var(--text-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.partner-logo:hover {
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--text-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.contact-item .label {
    font-weight: 600;
    min-width: 70px;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 2;
    display: block;
}

.footer-col a:hover {
    color: var(--accent);
}

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

.footer-qr img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.2);
}

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

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: var(--transition);
}

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

/* Breadcrumb */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-light);
}

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

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

.breadcrumb span {
    margin: 0 6px;
}

/* How-To Guide */
.howto-steps {
    max-width: 700px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* AI Feature Section */
.ai-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.ai-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(45,27,78,0.8), transparent);
    display: flex;
    align-items: center;
    padding: 40px;
}

.ai-banner-text {
    color: white;
    max-width: 400px;
}

.ai-banner-text h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.ai-banner-text p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.7;
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(232,84,124,0.2);
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 10px 16px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        height: 360px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .feature-grid,
    .expert-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ai-banner img {
        height: 200px;
    }
    
    .ai-banner-overlay {
        padding: 20px;
    }
    
    .ai-banner-text h3 {
        font-size: 18px;
    }
}

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

/* Lazy Load */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Page Content */
.page-content {
    padding: 40px 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-content h2 {
    font-size: 22px;
    margin: 30px 0 16px;
    color: var(--text-main);
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

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

.community-item {
    background: var(--text-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.community-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.community-item .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.community-item h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.community-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* Update Time */
.update-time {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}
