/* Pro-Photo 营销页样式 */
:root {
    --c-primary: #4F46E5;
    --c-primary-light: #818CF8;
    --c-secondary: #8B5CF6;
    --c-success: #10B981;
    --c-warning: #F59E0B;
    --c-danger: #F43F5E;
    --c-bg: #F8FAFC;
    --c-bg-alt: #F1F5F9;
    --c-text: #0F172A;
    --c-text-muted: #64748B;
    --c-border: #E2E8F0;
    --c-card: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --rounded-sm: 0.375rem;
    --rounded: 0.5rem;
    --rounded-lg: 0.75rem;
    --rounded-xl: 1rem;
    --rounded-2xl: 1.5rem;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ Header ============ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 1.125rem;
}
.brand-mark {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    border-radius: 8px;
    display: inline-block;
    position: relative;
}
.brand-mark::after {
    content: ''; position: absolute; inset: 6px;
    background: white; border-radius: 4px;
    opacity: 0.6;
}
.nav { display: flex; gap: 2rem; }
.nav-link {
    color: var(--c-text-muted); font-size: 0.875rem; font-weight: 500;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--c-primary); }

.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--rounded);
    font-weight: 600; font-size: 0.875rem;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--c-primary); color: white;
    box-shadow: 0 1px 2px 0 rgb(79 70 229 / 0.2);
}
.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(79 70 229 / 0.3);
}
.btn-ghost {
    background: transparent; color: var(--c-text); border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-alt); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero {
    padding: 4rem 0 5rem;
    background: radial-gradient(ellipse at top, rgba(79,70,229,0.08), transparent 50%),
                linear-gradient(180deg, white, var(--c-bg));
}
.hero-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(79,70,229,0.1);
    color: var(--c-primary);
    border-radius: 9999px;
    font-size: 0.75rem; font-weight: 600;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    margin: 0 0 1rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-2 {
    background: linear-gradient(135deg, var(--c-secondary), #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: 1.125rem; color: var(--c-text-muted);
    margin: 0 0 2rem; max-width: 480px;
}
.hero-cta { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats {
    display: flex; gap: 2rem;
    padding-top: 1.5rem; border-top: 1px solid var(--c-border);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.5rem; font-weight: 800; color: var(--c-text); }
.hero-stats span { font-size: 0.75rem; color: var(--c-text-muted); }

/* Canvas mock */
.canvas-mock {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border-radius: var(--rounded-2xl);
    padding: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.canvas-mock .node {
    position: absolute;
    width: 100px; height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--rounded);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 600;
    color: var(--c-text);
    box-shadow: var(--shadow-md);
}
.node-1 { top: 8%; left: 5%; }
.node-2 { top: 28%; left: 35%; }
.node-3 { top: 48%; left: 35%; }
.node-4 { top: 68%; left: 35%; }
.node-5 { top: 88%; left: 35%; }
.canvas-mock .edges {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.canvas-mock .edges path {
    fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 2;
    stroke-dasharray: 4 4;
    animation: dash 1s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -16; } }

/* ============ Section ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title {
    text-align: center;
    font-size: 2.25rem; font-weight: 800;
    margin: 0 0 0.5rem;
}
.section-sub {
    text-align: center; color: var(--c-text-muted);
    margin: 0 0 3rem;
}

/* ============ Template grid ============ */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.template-card {
    background: var(--c-card);
    border-radius: var(--rounded-xl);
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid var(--c-border);
}
.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary-light);
}
.template-cover {
    aspect-ratio: 16/10;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.template-body { padding: 1.25rem; }
.template-body h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.template-body p { color: var(--c-text-muted); font-size: 0.875rem; margin: 0 0 1rem; }
.template-meta { display: flex; gap: 0.5rem; }
.badge-credit {
    display: inline-block; padding: 0.125rem 0.5rem;
    background: rgba(79,70,229,0.1); color: var(--c-primary);
    border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.badge-credit.video {
    background: rgba(236,72,153,0.1); color: #EC4899;
}

/* ============ Features ============ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--c-card);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--c-border);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.feature p { color: var(--c-text-muted); font-size: 0.875rem; margin: 0; }

/* ============ CTA Block ============ */
.cta-block {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    border-radius: var(--rounded-2xl);
    color: white;
}
.cta-block h2 { font-size: 2rem; font-weight: 800; margin: 0 0 0.5rem; }
.cta-block p { margin: 0 0 2rem; opacity: 0.9; }
.cta-block .btn-primary {
    background: white; color: var(--c-primary);
}
.cta-block .btn-primary:hover { background: var(--c-bg-alt); }

/* ============ Pricing page ============ */
.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, white, var(--c-bg));
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 0.5rem; }
.page-header p { color: var(--c-text-muted); margin: 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.plan-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--rounded-2xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-featured {
    border-color: var(--c-primary);
    background: linear-gradient(180deg, rgba(79,70,229,0.04), white);
    box-shadow: var(--shadow-lg);
}
.plan-ribbon {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.plan-price {
    display: flex; align-items: baseline; justify-content: center;
    gap: 0.25rem; margin-bottom: 0.5rem;
}
.plan-currency { font-size: 1.5rem; font-weight: 700; color: var(--c-text-muted); }
.plan-amount { font-size: 3rem; font-weight: 900; color: var(--c-text); }
.plan-desc { color: var(--c-text-muted); font-size: 0.875rem; margin: 0 0 1.5rem; min-height: 2.5rem; }
.plan-features {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    text-align: left;
}
.plan-features li {
    padding: 0.5rem 0;
    color: var(--c-text);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--c-border);
}
.plan-features li:last-child { border-bottom: none; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 2rem; text-align: center; }
.faq details {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--rounded);
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; float: right; font-weight: 400; color: var(--c-text-muted);
}
.faq details[open] summary::after { content: '-'; }
.faq p { margin: 0.75rem 0 0; color: var(--c-text-muted); font-size: 0.875rem; }

/* ============ Footer ============ */
.site-footer {
    background: white;
    border-top: 1px solid var(--c-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-col h4 { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.75rem; }
.footer-col a {
    display: block; color: var(--c-text-muted);
    font-size: 0.875rem; margin-bottom: 0.5rem;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--c-primary); }
.footer-copyright {
    text-align: center;
    color: var(--c-text-muted);
    font-size: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .nav { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 1rem; }
}
