/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    max-width: 1200px;
}

/* 导航样式 */
.nav-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 1rem 2rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.nav-spacer {
    height: 72px;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    margin-right: 2rem;
}

.nav-btn {
    color: #5f6368;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid #dee2e6;
}

.nav-btn:hover {
    color: #1a73e8;
    background-color: rgba(26,115,232,.1);
    border-color: #1a73e8;
}

.nav-btn.active {
    color: #1a73e8;
    background-color: rgba(26,115,232,.1);
    border-color: #1a73e8;
}

/* 图片上传区域样式 */
.upload-section {
    margin: 2rem 0;
}

.image-preview-container {
    min-height: 300px;
    padding: 2rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 2px dashed #dadce0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 800px;
    margin: 0 auto;
}

.image-preview-container.dragover {
    border-color: #1a73e8;
    background-color: rgba(26,115,232,.1);
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.upload-hint {
    text-align: center;
    color: #5f6368;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 1rem;
}

.upload-hint i {
    font-size: 3rem;
    color: #1a73e8;
    margin-bottom: 1rem;
    display: block;
}

/* 批量处理图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-item:hover .remove-btn {
    opacity: 1;
}

/* 分析结果样式 */
.analysis-result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.result-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.result-actions button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 加载动画样式 */
.analysis-loading {
    display: none;
    padding: 1rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-header {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
} 

.markdown-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.markdown-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eaecef;
}

.markdown-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.markdown-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.markdown-content hr {
    height: 2px;
    background-color: #eaecef;
    border: none;
    margin: 2rem 0;
}

.markdown-content pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.markdown-content blockquote {
    padding: 0 1rem;
    color: #6a737d;
    border-left: 0.25rem solid #dfe2e5;
    margin: 1rem 0;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
}

/* 功能卡片样式 */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: #202124;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #5f6368;
    margin-bottom: 0;
}

/* 分析模式按钮样式 */
.mode-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.mode-btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dadce0;
    transition: all 0.3s ease;
}

.mode-btn i {
    font-size: 2rem;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.mode-btn.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* 产品介绍页面样式 */
.product-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.intro-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 4rem;
}

.intro-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 1.5rem;
}

.intro-header p {
    font-size: 1.25rem;
    color: #5f6368;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #1f1f1f;
    margin: 0 0 0.875rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #eaecef;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8 0%, #34a853 100%);
    border-radius: 2px;
}

.feature-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    margin-bottom: 4rem;
}

.feature-card {
    height: 100%;
    padding: 2.5rem;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    border-color: #1a73e8;
}

.feature-card i {
    font-size: 3rem;
    color: #1a73e8;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(26,115,232,.1);
}

.feature-card h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 0;
}

.advantage-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
}

.advantage-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,115,232,.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.advantage-icon i {
    font-size: 2rem;
    color: #1a73e8;
}

.scene-section {
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    margin-bottom: 4rem;
}

.scene-card {
    height: 100%;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
}

.scene-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    border-color: #1a73e8;
}

.partner-section {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    margin-bottom: 4rem;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.partner-logo {
    height: 48px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.contact-section {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.contact-info {
    display: inline-flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
}

.contact-info p {
    margin: 0;
    color: #5f6368;
    font-size: 1.1rem;
}

.contact-info i {
    color: #1a73e8;
    margin-right: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-header {
        padding: 3rem 1rem;
    }

    .intro-header h1 {
        font-size: 2rem;
    }

    .intro-header p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-section,
    .advantage-section,
    .scene-section,
    .partner-section,
    .contact-section {
        padding: 2rem 1rem;
    }

    .feature-card,
    .advantage-card,
    .scene-card {
        padding: 1.5rem;
    }
} 

/* APP 下载页面样式 */
.app-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.app-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 4rem;
    margin-bottom: 4rem;
}

.app-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 1.5rem;
}

.app-header .lead {
    font-size: 1.5rem;
    color: #5f6368;
    margin-bottom: 2rem;
}

.app-download-buttons {
    display: flex;
    gap: 1rem;
}

.btn-app-store img {
    height: 48px;
}

.app-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.app-description {
    text-align: center;
    margin-bottom: 4rem;
}

.app-description .lead {
    font-size: 1.25rem;
    color: #5f6368;
    line-height: 1.8;
}

.tip-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.tip-card i {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 1.5rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.why-card i {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 1.5rem;
}

.download-card {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    border-radius: 16px;
    color: white;
    margin-top: 4rem;
}

.download-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download-card p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .app-header {
        padding: 2rem;
        text-align: center;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .app-download-buttons {
        justify-content: center;
    }

    .app-preview-image {
        margin-top: 2rem;
    }
} 

/* 返回顶部按钮样式 */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
} 

/* 主容器布局优化 */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    height: calc(100vh - 72px);
    max-width: 1920px;
    margin: 0 auto;
    background: #f8f9fa;
}

/* 通用区块样式优化 */
.mode-section,
.upload-section,
.result-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,.05);
}

/* 模式列表样式 */
.mode-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

/* 模式按钮样式 */
.mode-item {
    width: 100%;
    background: none;
    border: 1px solid #eaecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.mode-item:hover {
    background: rgba(26,115,232,.03);
    border-color: #1a73e8;
    transform: translateX(4px);
}

.mode-item.active {
    background: rgba(26,115,232,.08);
    border-color: #1a73e8;
}

/* 上传区域样式 */
.upload-area {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dadce0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
    overflow: hidden;
    margin: 0.5rem;
    min-height: 300px;
}

.upload-area:hover {
    border-color: #1a73e8;
    background: rgba(26,115,232,.02);
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imagePreview.loaded {
    opacity: 1;
}

/* 结果区域样式 */
.result-area {
    flex: 1;
    background: #fafafa;
    border-radius: 8px;
    margin: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}

.result-placeholder i {
    font-size: 2rem;
    color: #1a73e8;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

/* 分析结果样式 */
.analysis-result {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    overflow: hidden;
}

.analysis-result pre {
    padding: 1.25rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 加载动画样式 */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-content {
    text-align: center;
    color: #1a73e8;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(26,115,232,.2);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 上传区域加载动画样式 */
.upload-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-content {
    text-align: center;
    color: #1a73e8;
    padding: 2rem;
    background: rgba(255,255,255,.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.loading-content p {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(26,115,232,.2);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}