/* ============================================
   页面样式 - pages.css
   首页特有、关于我们、页脚、其他页面样式
   ============================================ */

/* ============================================
   快速指引
   ============================================ */
.quick-guide {
    padding: 60px 0;
    background: var(--bg-white);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.guide-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guide-number {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.guide-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.guide-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   使用场景
   ============================================ */
.use-cases {
    padding: 80px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.case-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   使用技巧
   ============================================ */
.tips-section {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.tips-section .section-title {
    font-size: 2rem;
    margin-bottom: 32px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: var(--transition-normal);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.tip-card h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   首页特有样式
   ============================================ */
.hero-index {
    min-height: 480px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 40%, #FFCC00 100%);
}

.hero-index .hero-bg {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.2) 0%, transparent 50%);
}

/* ============================================
   功能概览 - 首页
   ============================================ */
.features-overview {
    padding: 100px 0;
    background: var(--bg-white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.overview-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    background: var(--bg-white);
    border: 1px solid transparent;
}

.overview-item:hover {
    background: var(--bg-light);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.overview-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-glow);
}

.overview-icon svg {
    width: 40px;
    height: 40px;
}

.overview-item h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.overview-item p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================
   关于我们
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text ul {
    list-style: none;
    margin: 24px 0;
}

.about-text ul li {
    padding: 14px 0;
    color: var(--text-gray);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-text ul li:last-child {
    border-bottom: none;
}

.about-text ul li::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.about-text ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-contact {
    background: var(--bg-white);
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
}

.about-contact h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--text-gray);
    min-width: 90px;
    font-size: 0.95rem;
}

.contact-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   页脚
   ============================================ */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-section h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-section h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-light);
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ============================================
   视频播放器
   ============================================ */
.video-section {
    margin-bottom: 60px;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    padding-top: 56.25%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.3);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 16px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.video-play-button:hover .play-icon {
    transform: scale(1.1);
}

.play-text {
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-container.playing .video-play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   图片放大查看器
   ============================================ */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-viewer-content {
    position: relative;
    z-index: 100000;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: imageZoomIn 0.3s ease;
    cursor: zoom-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@keyframes imageZoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   下载提示弹窗
   ============================================ */
.download-tip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.download-tip-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.download-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-gradient);
    color: var(--bg-white);
}

.download-tip-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--bg-white);
}

.download-tip-header .close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.download-tip-header .close-btn:hover {
    opacity: 1;
}

.download-tip-body {
    padding: 28px 24px;
}

.download-tip-body p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.download-tip-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.download-tip-footer .confirm-btn {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border: none;
    padding: 14px 48px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.download-tip-footer .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

/* ============================================
   平台支持区块（视频解析页面）
   ============================================ */
.platforms-section {
    padding: 80px 0;
    background: var(--bg-white);
}

/* ============================================
   响应式 - 页面
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-contact {
        position: static;
    }
}

@media (max-width: 768px) {
    .features-overview,
    .about {
        padding: 60px 0;
    }
    
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-guide {
        padding: 40px 0;
    }
    
    .use-cases {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-item {
        padding: 32px 20px;
    }
    
    .about-contact {
        padding: 28px;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-item {
        padding: 20px 12px;
    }
    
    .case-card {
        padding: 24px 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        padding: 20px;
    }
}

