/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285f4;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #1a2332 0%, #141b26 20%, #0f131a 40%, #0a0a0a 70%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Hero 区域 */
.hero {
    background: transparent;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

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

/* 导航栏 - 右上角固定 */
.navbar {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: transparent;
}

.navbar .container {
    padding: 0;
}

.nav-brand {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.lang-switch:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero 区域 */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-logo {
    max-width: 500px;
    width: 80%;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.hero-title {
    display: none;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

/* 演示视频 */
.hero-video {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    background-color: var(--bg-card);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--bg-card);
}

/* 视频控制按钮 */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.fullscreen-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.fullscreen-btn:hover {
    background: rgba(66, 133, 244, 0.9);
    transform: scale(1.2);
    box-shadow: 0 6px 30px rgba(66, 133, 244, 0.4);
}

.fullscreen-btn svg {
    width: 24px;
    height: 24px;
}

/* 视频加载状态 */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-video.loading::before {
    opacity: 1;
}

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

/* 按钮 */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-download {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    text-align: center;
}

.btn-download:hover {
    background-color: #3367d6;
}

/* 区块标题 */
.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

/* 特性区域 */
.features {
    padding: 60px 0;
    background-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.feature-card h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 下载区域 */
.download {
    padding: 60px 0;
    background-color: transparent;
}

.download-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
    margin-top: 16px;
}

.download-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.download-cards.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.download-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
}

.download-card-coming {
    opacity: 0.7;
}

.download-card-coming:hover {
    opacity: 0.8;
}

.download-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.download-card-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.version-tag {
    background-color: rgba(66, 133, 244, 0.15);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.version-tag.coming-soon {
    background-color: rgba(154, 160, 166, 0.15);
    color: var(--text-secondary);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    gap: 10px;
}

.download-link.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.download-link:hover {
    background-color: rgba(66, 133, 244, 0.08);
    border-color: var(--primary-color);
}

.download-link.disabled:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    transform: none;
}

.download-link:active {
    transform: scale(0.98);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.link-content strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.link-content small {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    flex-shrink: 0;
    pointer-events: none;
    white-space: nowrap;
}

.download-btn.disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
}

.download-link:hover .download-btn {
    background-color: #3367d6;
    transform: scale(1.05);
}

.download-link.disabled:hover .download-btn {
    background-color: var(--border-color);
    transform: none;
}

.installation-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background-color: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.install-step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.install-step p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.install-arrow {
    color: var(--text-secondary);
    font-size: 20px;
}

/* 安装教程 */
.installation {
    padding: 80px 0;
    background-color: transparent;
}

/* 角色案例 */
.role-cases {
    padding: 80px 0;
}

.role-cases-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

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

.role-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.role-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(66, 133, 244, 0.2);
}

.role-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.role-card h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

/* 页脚 */
.footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: 80px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 300px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .navbar {
        top: 16px;
        right: 16px;
    }

    .nav-links {
        gap: 12px;
        padding: 10px 16px;
    }

    .nav-link {
        font-size: 12px;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .download-cards.three-columns {
        grid-template-columns: 1fr;
    }

    .installation-steps {
        flex-direction: column;
        gap: 16px;
    }

    .install-arrow {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.hero-logo {
    max-width: 380px;
    width: 60%;
    margin: 0 auto 16px;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.8;
    text-align: left;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-weight: 500;
}

/* 安装教程 */
.installation {
    padding: 60px 0;
    background-color: transparent;
}

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

.installation-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.installation-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
}

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

.install-step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.install-step p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.install-arrow {
    color: var(--text-secondary);
    font-size: 20px;
}

/* 你的AI工作搭档章节 */
.partner {
    padding: 60px 0;
    background-color: transparent;
}

.partner-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
}

.partner-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.partner-icon svg {
    width: 100%;
    height: 100%;
}

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

.partner-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 快速配置区域 */
.quick-config {
    padding: 60px 0;
    background-color: transparent;
}

.config-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
    margin-top: 16px;
}

.config-video {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    background-color: var(--bg-card);
}

.config-video .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.config-video video {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--bg-card);
}

/* 配置视频加载状态 */
.config-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.config-video.loading::before {
    opacity: 1;
}

.config-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
    padding: 60px 0;
    background-color: transparent;
}

/* 配置小技巧 */
.config-tip {
    max-width: 900px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 8px;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.tip-content strong {
    color: var(--primary-color);
    margin-right: 4px;
}

/* 任务灵感 - 聊天界面风格 */
.task-inspiration {
    padding: 60px 0;
    background-color: transparent;
}

.inspiration-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
    margin-top: 16px;
}

.chat-demos {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chat-demo {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.chat-demo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
}

.chat-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.chat-avatar {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(66, 133, 244, 0.1);
    border-radius: 12px;
}

.chat-title h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.chat-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.chat-conversation {
    padding: 24px 28px;
}

.message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
    gap: 12px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 16px 20px;
    max-width: 70%;
    position: relative;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bot-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.bot-message .message-content {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 4px;
    padding: 16px 20px;
    max-width: 70%;
    border: 1px solid var(--border-color);
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.expand-message-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.expand-message-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.full-prompt {
    display: none;
    padding: 0 28px 28px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.chat-demo.expanded .full-prompt {
    display: block;
}

.chat-demo.expanded .expand-message-btn {
    background-color: rgba(255, 255, 255, 0.3);
}

.prompt-section,
.requirements-section {
    margin-top: 20px;
}

.prompt-label,
.requirements-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.prompt-content,
.requirements-content {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.requirements-content {
    margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-header {
        padding: 20px;
    }
    
    .chat-conversation {
        padding: 20px;
    }
    
    .full-prompt {
        padding: 0 20px 20px;
    }
    
    .user-message .message-content,
    .bot-message .message-content {
        max-width: 85%;
    }
}

/* 更新 logo 样式 */
.logo {
    height: 40px;
    width: auto;
}

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

/* ===== 滚动渐显动效 ===== */

/* 初始隐藏状态：向上偏移 + 透明 */
.fade-up {
    opacity: 0;
    -webkit-transform: translateY(30px);
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    transform: translateY(30px);
    -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
    -moz-transition: opacity 0.6s ease, -moz-transform 0.6s ease;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 进入视口后的显示状态 */
.fade-up.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* 卡片错开延迟，营造层次感 */
.fade-up:nth-child(1) { -webkit-transition-delay: 0s;    transition-delay: 0s; }
.fade-up:nth-child(2) { -webkit-transition-delay: 0.08s; transition-delay: 0.08s; }
.fade-up:nth-child(3) { -webkit-transition-delay: 0.16s; transition-delay: 0.16s; }
.fade-up:nth-child(4) { -webkit-transition-delay: 0.24s; transition-delay: 0.24s; }
.fade-up:nth-child(5) { -webkit-transition-delay: 0.32s; transition-delay: 0.32s; }
.fade-up:nth-child(6) { -webkit-transition-delay: 0.40s; transition-delay: 0.40s; }

/* 不支持动效的用户（prefers-reduced-motion）直接显示 */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
        -webkit-transition: none;
        transition: none;
    }
}
