/* ============================================
   组件样式 - components.css
   导航、英雄区、产品卡片、功能卡片等
   ============================================ */

/* ============================================
   导航栏
   ============================================ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-light);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo h1 a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.08);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    position: relative;
    background: var(--primary-gradient);
    color: var(--bg-white);
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: 400px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.1) 0%, transparent 60%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -10px) scale(1.02); }
    50% { transform: translate(-5px, 15px) scale(0.98); }
    75% { transform: translate(-15px, -5px) scale(1.01); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 36px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 0.85rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 18px 48px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition-normal);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: var(--primary-dark);
}

.btn-icon {
    font-size: 1.4rem;
}

/* ============================================
   产品卡片 - 动态自适应布局
   ============================================ */
.products {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.product-card {
    flex: 1 1 280px;
    max-width: 320px;
    min-width: 260px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-light);
    position: relative;
    box-sizing: border-box;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6B35, #FF4757);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.product-badge.badge-new {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
}

.product-features li {
    color: var(--text-gray);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.product-tags .tag {
    padding: 4px 10px;
    font-size: 0.7rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.product-meta .platform {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.product-btn:hover {
    color: var(--bg-white);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* ============================================
   功能卡片
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--bg-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.feature-icon-box svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 2;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ============================================
   截图展示
   ============================================ */
.screenshots {
    padding: 100px 0;
    background: var(--bg-light);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    aspect-ratio: 16/10;
}

.screenshot-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 60px 24px 24px;
    color: var(--bg-white);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--bg-white);
}

.screenshot-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   使用教程
   ============================================ */
.instructions {
    padding: 100px 0;
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    display: inline-flex;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.step-card p {
    color: var(--text-gray);
    line-height: 2;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 36px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 2;
    font-size: 1.05rem;
    margin: 0;
}

/* ============================================
   下载区
   ============================================ */
.download {
    padding: 100px 0;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 204, 0, 0.15) 0%, transparent 50%);
}

.download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 56px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.download-content > p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 28px;
}

.download-features {
    list-style: none;
    margin-bottom: 36px;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    border-bottom: 1px solid var(--border-light);
}

.download-features li:last-child {
    border-bottom: none;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.download-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    padding: 20px 48px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
    margin-bottom: 16px;
}

.download-btn-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.5);
    color: var(--bg-white);
}

.download-note {
    color: var(--text-light);
    font-size: 0.95rem;
}

.download-tips h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.download-tips > p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.tips-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tips-images img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.install-steps {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.install-steps p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.install-steps ol {
    padding-left: 24px;
    color: var(--text-gray);
}

.install-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ============================================
   响应式 - 组件
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        gap: 20px;
    }
    
    .product-card {
        flex: 1 1 260px;
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .download-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
        min-height: 320px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        word-break: break-word;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        word-break: break-word;
        margin-bottom: 28px;
    }
    
    .hero-features {
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .hero-feature-item {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-white);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 40px;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        z-index: 1000;
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 14px 32px;
    }
    
    .products,
    .features {
        padding: 50px 0;
    }
    
    .screenshots,
    .instructions,
    .download {
        padding: 60px 0;
    }
    
    .products-grid {
        justify-content: center;
    }
    
    .product-card {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-info h3,
    .feature-card h3 {
        word-break: break-word;
    }
    
    .product-desc,
    .feature-card p {
        word-break: break-word;
    }
    
    .feature-grid,
    .screenshots-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-card {
        padding: 28px 20px;
    }
    
    .download-content h2 {
        font-size: 1.8rem;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .download-btn,
    .download-btn-large {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-card {
        min-width: 100%;
    }
    
    .feature-card,
    .step-card {
        padding: 24px 20px;
    }
}

