/* ============================================
   ALSY工作室 - 公共样式
   全站共享样式，所有页面均引用此文件
   ============================================ */

/* === 滚动淡入动画 === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 返回顶部按钮 === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary, #2563EB);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* === 亮点数据网格（首页统计数字） === */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #2563EB);
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 1rem;
    color: var(--gray-600, #475569);
}

/* === 文件下载样式 === */
.download-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.download-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 50px;
    background: white;
    color: var(--text-primary, #1E293B);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.download-tab.active {
    background: var(--primary, #2563EB);
    color: white;
    border-color: var(--primary, #2563EB);
}

.download-tab:hover:not(.active) {
    background: var(--bg-light, #F8FAFC);
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.download-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    margin-bottom: 0.25rem;
}

.download-details span {
    font-size: 0.8rem;
    color: var(--gray-400, #94A3B8);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === 卡片通用样式 === */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon.blue   { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #2563EB; }
.card-icon.green  { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #10B981; }
.card-icon.orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #F59E0B; }
.card-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #7C3AED; }
.card-icon.red    { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #DC2626; }
.card-icon.teal   { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); color: #0D9488; }
.card-icon.cyan   { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: #0891B2; }

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #16a34a;
}

/* === 视频卡片样式 === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.video-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary, #2563EB), var(--primary-dark, #1E40AF));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-card-desc {
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === 产品卡片 === */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--gray-100, #F1F5F9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
}

.product-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary, #2563EB);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.product-link-btn {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: var(--primary, #2563EB);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.product-link-btn:hover {
    background: var(--primary-dark, #1E40AF);
}

.product-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* === 二维码样式 === */
.qr-item {
    text-align: center;
}

.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100, #F1F5F9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
}

/* === 页面内容通用 === */
.page-content {
    padding: 8rem 2rem 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary, #2563EB);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-desc {
    color: var(--text-secondary, #475569);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Footer === */
footer {
    background: var(--gray-900, #0F172A);
    color: var(--gray-400, #94A3B8);
    padding: 2rem;
    text-align: center;
    margin-top: 0;
}

footer p {
    color: var(--gray-400, #94A3B8);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-links-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-inline a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links-inline a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links-inline .divider {
    color: var(--gray-600, #475569);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .page-content {
        padding: 6rem 1rem 2rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
}
