/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --secondary: #f43f5e;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-1: #334155;
    --gray-2: #64748b;
    --gray-3: #94a3b8;
    --gray-4: #cbd5e1;
    --gray-5: #e2e8f0;
    --gray-6: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
    --transition: all .2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-5);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.logo i { font-size: 24px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-2);
    transition: var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--primary); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* ========== Hero ========== */
.hero {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 17px;
    color: var(--gray-2);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    gap: 40px;
}
.hero-stats .stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.hero-stats .stat span {
    font-size: 13px;
    color: var(--gray-3);
}

/* Hero Mockup */
.hero-mockup {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dark-2);
}

.dots { display: flex; gap: 6px; }
.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.url-bar {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,.1);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gray-3);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

.mock-card {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,.6);
    animation: pulse 3s ease-in-out infinite;
}

.c1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.c2 { background: linear-gradient(135deg, #f093fb, #f5576c); animation-delay: .5s; }
.c3 { background: linear-gradient(135deg, #4facfe, #00f2fe); animation-delay: 1s; }
.c4 { background: linear-gradient(135deg, #43e97b, #38f9d7); animation-delay: 1.5s; }
.c5 { background: linear-gradient(135deg, #fa709a, #fee140); animation-delay: 2s; }
.c6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); animation-delay: 2.5s; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-2);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== Features ========== */
.features {
    padding: 100px 0;
    background: var(--gray-6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-5);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-2);
    line-height: 1.7;
}

/* ========== Templates ========== */
.templates {
    padding: 100px 0;
}

.template-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-5);
    border-radius: 100px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-2);
}
.tab-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.template-preview {
    background: var(--gray-6);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 400px;
}

.template-demo { display: none; }
.template-demo.active { display: block; }

.template-desc {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-2);
    font-size: 14px;
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.demo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}
.demo-item:hover .demo-overlay { opacity: 1; }

/* Demo Waterfall */
.demo-waterfall {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.wf-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wf-h1 { aspect-ratio: 1; }
.wf-h2 { aspect-ratio: .75; }
.wf-h3 { aspect-ratio: .6; }

/* Demo Carousel */
.demo-carousel { max-width: 700px; margin: 0 auto; }
.carousel-track {
    display: flex;
    gap: 12px;
    overflow: hidden;
    padding: 20px 0;
}
.carousel-item {
    min-width: 140px;
    height: 180px;
    aspect-ratio: auto;
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: .6;
    transform: scale(.9);
}
.carousel-item.center {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}
.carousel-nav button {
    background: var(--white);
    border: 1px solid var(--gray-5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-2);
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-4);
}
.carousel-dots span.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Demo Highlights */
.demo-highlights {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 0;
}
.highlight-item { text-align: center; }
.highlight-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--gray-4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    margin-bottom: 8px;
}
.highlight-ring.active {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
}
.highlight-item span { font-size: 12px; color: var(--gray-2); }

/* Demo Showcase */
.demo-showcase { max-width: 500px; margin: 0 auto; }
.showcase-main .demo-item {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    position: relative;
}
.showcase-product {
    position: absolute;
    bottom: 16px;
    right: 16px;
}
.product-tag {
    background: rgba(0,0,0,.7);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}
.showcase-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.thumb {
    flex: 1;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    opacity: .6;
    cursor: pointer;
}
.thumb.active { opacity: 1; outline: 2px solid var(--primary); outline-offset: 2px; }

/* Demo Video */
.demo-video { max-width: 500px; margin: 0 auto; }
.video-player {
    aspect-ratio: 9/12;
    max-height: 280px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 48px;
    overflow: hidden;
}
.video-product {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(8px);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vp-thumb {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 6px;
    flex-shrink: 0;
}
.vp-info { flex: 1; }
.vp-name { display: block; font-size: 13px; font-weight: 500; }
.vp-price { font-size: 15px; font-weight: 700; color: var(--secondary); }
.vp-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.video-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.video-thumb {
    flex: 1;
    aspect-ratio: 9/12;
    max-height: 80px;
    background: linear-gradient(135deg, #2d2d44, #1a1a2e);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 18px;
    cursor: pointer;
}
.video-thumb.active { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ========== How It Works ========== */
.how-it-works {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.how-it-works .section-tag {
    background: rgba(99, 102, 241, .2);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(99, 102, 241, .2);
    margin-bottom: -8px;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--gray-3);
    line-height: 1.7;
}

.step-arrow {
    color: var(--primary-light);
    font-size: 24px;
    opacity: .4;
}

/* ========== Pricing ========== */
.pricing { padding: 100px 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    background: var(--white);
    border: 2px solid var(--gray-5);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
}
.price-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}
.price-card.featured:hover { transform: scale(1.05) translateY(-4px); }

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.price-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-5);
    margin-bottom: 24px;
}

.price-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.price .currency {
    font-size: 18px;
    font-weight: 600;
    vertical-align: super;
}
.price .amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}
.price .period {
    font-size: 14px;
    color: var(--gray-3);
}

.price-features {
    margin-bottom: 28px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-features li i {
    font-size: 12px;
    width: 20px;
    text-align: center;
}
.price-features .fa-check { color: var(--success); }
.price-features .fa-times { color: var(--gray-4); }
.price-features li.disabled { color: var(--gray-4); }

/* ========== FAQ ========== */
.faq { padding: 100px 0; background: var(--gray-6); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--gray-5);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    text-align: left;
}
.faq-question i {
    transition: var(--transition);
    color: var(--gray-3);
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray-2);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}
.cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.cta p { font-size: 16px; opacity: .8; margin-bottom: 32px; }
.cta .btn {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.cta .btn:hover {
    background: transparent;
    color: var(--white);
}

/* ========== Footer ========== */
.footer {
    padding: 64px 0 32px;
    background: var(--dark);
    color: var(--gray-3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; }

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-3);
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 36px; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 24px; }

    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .price-card.featured:hover { transform: translateY(-4px); }

    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .demo-highlights { gap: 16px; flex-wrap: wrap; }
}
