/* 香蕉AI官网 - Apple风格白色主题 */

:root {
    --banana-primary: #ffc107;
    --banana-secondary: #FFEA00;
    --banana-light: #FFF9C4;
    --banana-dark: #F9A825;
    --banana-accent: #FFB300;
    --text-dark: #1d1d1f;
    --text-secondary: #86868b;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --border-light: rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo .logo-svg {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--banana-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-admin {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s;
}

.btn-admin:hover {
    color: var(--banana-dark);
}

.btn-primary {
    background: var(--banana-primary);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--banana-dark);
    transform: scale(1.02);
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 40%,
        rgba(245,245,247,0.5) 70%,
        rgba(245,245,247,1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    padding-top: 60px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--banana-primary) 0%, var(--banana-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.25);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--banana-primary);
    color: var(--text-dark);
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 214, 10, 0.3);
}

.btn-hero-primary:hover {
    background: var(--banana-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 214, 10, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-hero-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.hero-scroll span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--banana-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* 通用Section样式 */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* 功能特性 */
.features {
    background: var(--bg-light);
    padding-top: 40px;
    position: relative;
}

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

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

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

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}



/* 展示区域 */
.showcase {
    background: var(--bg-white);
}

.showcase-slider {
    max-width: 900px;
    margin: 0 auto;
}

.showcase-item {
    display: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.1);
}

.showcase-item.active {
    display: block;
}

.showcase-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 20px;
    margin: 0;
    z-index: 20;
    /* 毛玻璃效果 */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.before-after {
    aspect-ratio: 16/9;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder {
    color: var(--text-secondary);
    font-size: 18px;
}

/* 对比图滑块样式 */
.before-after-container {
    position: relative;
    width: 100%;
}

.ba-slider {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-after {
    z-index: 1;
}

.ba-label {
    position: absolute;
    bottom: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
}

.ba-before .ba-label { left: 16px; }
.ba-after .ba-label { right: 16px; }

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: var(--text-dark);
}

.ba-handle-circle svg {
    width: 24px;
    height: 24px;
}

/* 对比图导航点 */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.showcase-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-dots .dot:hover {
    background: var(--banana-primary);
}

.showcase-dots .dot.active {
    background: var(--banana-dark);
    transform: scale(1.2);
}

/* 价格区域 */
.pricing {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border: 2px solid var(--banana-primary);
    box-shadow: 0 20px 60px rgba(255, 214, 10, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--banana-primary);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.btn-pricing {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-pricing:hover {
    background: var(--border-light);
}

.btn-pricing.primary {
    background: var(--banana-primary);
    color: var(--text-dark);
}

.btn-pricing.primary:hover {
    background: var(--banana-dark);
}

/* 下载区域 */
.download {
    background: var(--bg-white);
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--text-dark);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.download-btn .icon {
    font-size: 28px;
}

.btn-text {
    text-align: left;
}

.btn-text .small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.btn-text .large {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.download-note {
    font-size: 14px;
    color: var(--text-secondary);
}


/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--banana-primary);
}

.copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-container {
        padding: 80px 20px;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }
.feature-card:nth-child(7) { animation-delay: 0.4s; }
.feature-card:nth-child(8) { animation-delay: 0.45s; }

/* 高亮卡片样式 */
.feature-card.highlight-card {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.1) 0%, rgba(249, 168, 37, 0.1) 100%);
    border: 1.5px solid var(--banana-primary);
}

.feature-card.highlight-card:hover {
    box-shadow: 0 20px 60px rgba(255, 214, 10, 0.2);
}