/* 糖心视频帮助台页面专用样式 */

/* CSS变量定义 - 现代科技风格 */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4fcf;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #e17055;
    
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2d3436;
    
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-secondary: linear-gradient(135deg, #00cec9, #00b894);
    --gradient-accent: linear-gradient(135deg, #fd79a8, #e84393);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* 基础样式继承 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* 动态背景和导航栏继承 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floating 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    right: 10%;
    animation-delay: -2s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    top: 60%;
    right: 50%;
    animation-delay: -6s;
}

@keyframes floating {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -20px) scale(1.1); }
    50% { transform: translate(20px, -30px) scale(0.9); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: nowrap;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: nowrap;
    margin: 0 20px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.nav-link.cta-link {
    background: var(--gradient-primary);
    color: white;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* 英雄区域 */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 206, 201, 0.05));
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框 */
.search-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-lg);
    font-size: 16px;
    background: white;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-btn {
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 快速帮助 */
.quick-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

.quick-btn {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* 帮助分类 */
.help-categories {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

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

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

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

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.category-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.category-stats .stat {
    background: var(--bg-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}

/* FAQ部分 */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

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

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

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.toggle-icon {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.1);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
}

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

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

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.faq-answer ol,
.faq-answer ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 16px 0 8px 0;
}

/* AI助手区域 */
.ai-assistant {
    padding: 80px 0;
    background: var(--bg-primary);
}

.assistant-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
}

.assistant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.assistant-avatar {
    position: relative;
}

.ai-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.assistant-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.assistant-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.assistant-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.assistant-features .feature {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.chat-with-ai {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chat-with-ai:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .quick-help {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .assistant-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}