/* 青档PPT - Main Stylesheet */
/* Design Tokens */
:root {
    --teal-50: #F0FDFA;
    --teal-100: #CCFBF1;
    --teal-200: #99F6E4;
    --teal-300: #5EEAD4;
    --teal-400: #2DD4BF;
    --teal-500: #14B8A6;
    --teal-600: #0D9488;
    --teal-700: #0F766E;
    --teal-800: #115E59;
    --teal-900: #134E4A;
    --color-primary: #0D9488;
    --color-primary-light: #14B8A6;
    --color-primary-dark: #0F766E;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F0FDTA;
    --color-text: #1E293B;
    --color-text-secondary: #64748B;
    --color-border: #E2E8F0;
    --gradient-primary: linear-gradient(135deg, #0D9488, #14B8A6, #2DD4BF);
    --gradient-hero: linear-gradient(160deg, #FFFFFF 0%, #F0FDFA 40%, #CCFBF1 100%);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.06);
    --shadow-lg: 0 10px 30px rgba(15,23,42,0.08);
    --shadow-xl: 0 20px 50px rgba(15,23,42,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Template page uses main site nav - no custom nav styles needed */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--teal-200);
    top: -200px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--teal-100);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 15s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--teal-300);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 25s ease-in-out infinite;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(13,148,136,0.08);
    border: 1px solid rgba(13,148,136,0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    width: fit-content;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--teal-900);
}
.title-line {
    display: block;
}
.title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,148,136,0.4);
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.btn-hero-secondary:hover {
    background: #fff;
    border-color: var(--teal-300);
    box-shadow: var(--shadow-md);
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--teal-800);
}
.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
}
.hero-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.hero-card-main {
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(240,253,250,0.5);
}
.card-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }
.card-title-text {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.card-body {
    padding: 20px;
}
.slide-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.slide-thumb {
    aspect-ratio: 16/10;
    background: var(--teal-50);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s;
}
.slide-thumb:hover {
    transform: scale(1.05);
}
.thumb-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--teal-300);
}
.thumb-bar-1 { width: 80%; }
.thumb-bar-2 { width: 60%; }
.thumb-dots {
    display: flex;
    gap: 4px;
    margin-top: auto;
}
.thumb-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-200);
}
.thumb-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal-200);
    margin: 0 auto 8px;
}
.thumb-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.thumb-bar-sm {
    height: 4px;
    border-radius: 2px;
    background: var(--teal-200);
}
.thumb-bar-sm:first-child { width: 70%; }
.thumb-bar-sm:last-child { width: 50%; }
.thumb-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
    padding-bottom: 8px;
}
.chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--gradient-primary);
}
.hero-card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-800);
    animation: floatCard 6s ease-in-out infinite;
}
.hero-card-float {
    top: 20px;
    right: -20px;
}
.hero-card-float-2 {
    bottom: 60px;
    left: -30px;
    animation-delay: -3s;
}
.float-icon {
    font-size: 20px;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Common */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(13,148,136,0.08);
    border-radius: 999px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--teal-900);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 17px;
    color: var(--color-text-secondary);
}

/* Features */
.features-section {
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}
.feature-icon-1 { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.feature-icon-2 { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }
.feature-icon-3 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.feature-icon-4 { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.feature-icon-5 { background: linear-gradient(135deg, #EC4899, #F472B6); }
.feature-icon-6 { background: linear-gradient(135deg, #10B981, #34D399); }
.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--teal-900);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Templates */
.templates-section {
    background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%);
}
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.template-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}
.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.template-preview {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}
.template-preview-1 { background: linear-gradient(135deg, #1E293B, #334155); }
.template-preview-2 { background: linear-gradient(135deg, #7C3AED, #3B82F6); }
.template-preview-3 { background: linear-gradient(135deg, #0D9488, #06B6D4); }
.template-preview-4 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.template-preview-5 { background: linear-gradient(135deg, #115E59, #0F766E); }
.template-preview-6 { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.template-card:hover .template-overlay {
    opacity: 1;
}
.template-btn {
    padding: 10px 24px;
    background: #fff;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
}
.template-info {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.template-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-900);
}
.template-info span {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.template-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: #fff;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-loading,
.template-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.template-load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 12px 40px;
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    background: #fff;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--color-primary);
    color: #fff;
}

/* How It Works */
.how-section {
    background: #fff;
}
.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.how-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 20px;
}
.step-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.how-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal-900);
    margin-bottom: 8px;
}
.how-step p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.step-connector {
    flex: 0 0 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 24px;
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Pricing */
.pricing-section {
    background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: flex-start;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.pricing-card-popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.pricing-card-popular:hover {
    transform: scale(1.02) translateY(-4px);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}
.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--teal-900);
    margin-bottom: 4px;
}
.pricing-header p {
    font-size: 14px;
    color: var(--color-text-secondary);
}
.pricing-price {
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}
.price-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--teal-800);
}
.price-period {
    font-size: 16px;
    color: var(--color-text-secondary);
}
.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text);
}
.pricing-features li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}
.btn-pricing {
    display: block;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--teal-50);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}
.btn-pricing:hover {
    background: var(--teal-100);
}
.btn-pricing-popular {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(13,148,136,0.25);
}
.btn-pricing-popular:hover {
    box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}

/* CTA Section */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #134E4A, #0F766E, #115E59);
    position: relative;
    overflow: hidden;
}
.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.cta-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}
.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--teal-400);
    top: -200px;
    left: -100px;
}
.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--teal-300);
    bottom: -150px;
    right: -100px;
}
.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}
.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    color: var(--teal-900);
    background: #fff;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Footer */
.ppt-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 60px 40px 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.footer-brand p {
    font-size: 14px;
    color: #64748B;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: #94A3B8;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--teal-400);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748B;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        height: 360px;
    }
    .features-grid,
    .templates-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ppt-nav {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-actions {
        display: none;
    }
    .hero-section {
        padding: 100px 20px 60px;
    }
    .hero-visual {
        height: 300px;
    }
    .hero-card-float {
        display: none;
    }
    .section-container {
        padding: 60px 20px;
    }
    .features-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .pricing-card-popular {
        transform: none;
    }
    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }
    .how-steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    .step-connector::after {
        right: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(50%);
    }
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }
    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    .cta-section {
        padding: 60px 20px;
    }
}
