/* 涂鸦风格落地页 CSS */
:root {
    /* 颜色变量 */
    --primary-color: #4a8fe7;
    --secondary-color: #e9b04d;
    --accent-color: #f67280;
    --light-color: #ebf6ff;
    --dark-color: #2c3e50;
    --bg-color: #f9f7f2;
    
    /* 涂鸦边框 */
    --doodle-thickness: 2px;
    --doodle-color: var(--dark-color);
    --doodle-radius: 12px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
    background-image: url('images/paper-texture.png');
    position: relative;
}

/* 手绘滤镜 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pencil-noise.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* 添加云彩和悬浮物体的装饰 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/floating-elements.png');
    background-repeat: repeat;
    opacity: 0.07;
    pointer-events: none;
    animation: float 120s linear infinite;
    z-index: -1;
}

@keyframes float {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 1000px;
    }
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-type: none;
    padding-left: var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: url('images/underline.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 涂鸦边框和卡片 */
.doodle-border {
    position: relative;
    border-radius: var(--doodle-radius);
    padding: var(--spacing-sm);
}

.doodle-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: var(--doodle-thickness) solid var(--doodle-color);
    border-radius: var(--doodle-radius);
    z-index: -1;
}

.doodle-card {
    position: relative;
    background-color: #fff;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--doodle-radius);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-image: url('images/paper-texture-light.png');
}

.doodle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: var(--doodle-thickness) solid var(--doodle-color);
    border-radius: var(--doodle-radius);
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.doodle-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 8px 0 rgba(0,0,0,0.1);
}

.doodle-container {
    position: relative;
    padding: var(--spacing-md);
    border-radius: var(--doodle-radius);
    background-color: #fff;
    margin-bottom: var(--spacing-md);
    background-image: url('images/paper-texture-light.png');
}

.doodle-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: var(--doodle-thickness) dashed var(--doodle-color);
    border-radius: var(--doodle-radius);
    margin: 2px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.doodle-bg {
    position: relative;
    background-image: url('images/doodle-bg.png');
    background-repeat: repeat;
    background-size: 500px;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: var(--spacing-sm);
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.1));
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
    padding: 0;
}

nav a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-image: url('images/nav-underline.svg');
    background-size: cover;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-doodles.png');
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: var(--doodle-thickness) solid var(--doodle-color);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    font-family: 'Quicksand', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    color: white;
}

.btn.primary {
    background-color: var(--primary-color);
}

.btn.secondary {
    background-color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 500px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--doodle-radius);
    position: relative;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--doodle-radius);
}

.feature-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    width: 100%;
}

.badge {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5em 1em;
    border-radius: var(--doodle-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
    position: relative;
    border: var(--doodle-thickness) solid var(--doodle-color);
    font-size: 0.9rem;
}

.badge .icon {
    font-size: 1.2rem;
}

/* 演示区域 */
.demo-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.generator-interface {
    max-width: 900px;
    margin: 0 auto;
}

.prompt-input {
    margin-bottom: var(--spacing-md);
}

.prompt-input textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: var(--doodle-thickness) solid var(--doodle-color);
    border-radius: var(--doodle-radius);
    min-height: 100px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    resize: none;
}

.style-options {
    margin-bottom: var(--spacing-md);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.style-card {
    padding: var(--spacing-sm);
    border: var(--doodle-thickness) solid rgba(0, 0, 0, 0.1);
    border-radius: var(--doodle-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
}

.style-card.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 143, 231, 0.1);
}

.style-preview {
    height: 120px;
    border-radius: var(--doodle-radius);
    background-color: #f0f0f0;
    margin-bottom: var(--spacing-xs);
    background-size: cover;
    background-position: center;
}
.style-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.style-option {
    padding: 10px 15px;
    border: 2px solid var(--doodle-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.style-option:hover {
    transform: translateY(-3px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.style-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.style-card:nth-child(1) .style-preview {
    background-image: url('images/style-classic.jpg');
}

.style-card:nth-child(2) .style-preview {
    background-image: url('images/style-whisper.jpg');
}

.style-card:nth-child(3) .style-preview {
    background-image: url('images/style-spirited.jpg');
}

.style-card:nth-child(4) .style-preview {
    background-image: url('images/style-howl.jpg');
}

.intensity-slider {
    margin-bottom: var(--spacing-md);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    outline: none;
    position: relative;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: var(--doodle-thickness) solid var(--doodle-color);
}

.generate-btn {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--doodle-radius);
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: var(--doodle-thickness) solid var(--doodle-color);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

/* 特点部分 */
.features-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: var(--doodle-thickness) solid var(--doodle-color);
}

/* 应用部分 */
.applications-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.applications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.application-category {
    height: 100%;
}

.application-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: var(--spacing-md);
}

.application-list li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 30px;
}

.application-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.application-image {
    height: 200px;
    background-color: #f0f0f0;
    border-radius: var(--doodle-radius);
    margin-top: var(--spacing-sm);
    background-size: cover;
    background-position: center;
}

.application-category:nth-child(1) .application-image {
    background-image: url('images/app-personal.jpg');
}

.application-category:nth-child(2) .application-image {
    background-image: url('images/app-professional.jpg');
}

.application-category:nth-child(3) .application-image {
    background-image: url('images/app-educational.jpg');
}

/* 技术部分 */
.technology-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.tech-container {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg);
    border-radius: var(--doodle-radius);
    position: relative;
}

.tech-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: var(--doodle-thickness) solid var(--doodle-color);
    border-radius: var(--doodle-radius);
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.tech-description {
    flex: 1;
}

.tech-features, .tech-metrics {
    margin-top: var(--spacing-md);
}

.tech-visualization {
    flex: 1;
    min-height: 300px;
    background-image: url('images/tech-visualization.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 推荐部分 */
.testimonials-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    padding: var(--spacing-md);
}

.testimonial-content {
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: 30px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: 'Caveat', cursive;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: var(--doodle-thickness) solid var(--doodle-color);
}

.testimonial-card:nth-child(1) .author-avatar {
    background-image: url('images/avatar-1.jpg');
    background-size: cover;
}

.testimonial-card:nth-child(2) .author-avatar {
    background-image: url('images/avatar-2.jpg');
    background-size: cover;
}

.author-info h4 {
    margin-bottom: 0;
}

/* 备用演示部分 */
.alt-demo-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
}

.alt-generator {
    max-width: 900px;
    margin: 0 auto;
}

.style-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.style-btn {
    padding: 0.7em 1.5em;
    background-color: rgba(255, 255, 255, 0.7);
    border: var(--doodle-thickness) solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-btn.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 143, 231, 0.1);
}

/* FAQ部分 */
.faq-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    cursor: pointer;
}

.faq-item h3 {
    position: relative;
    padding-right: 30px;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--primary-color);
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.logo-small {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.link-column {
    min-width: 150px;
}

.link-column h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--spacing-xs);
}

.link-column ul {
    padding-left: 0;
}

.link-column li {
    margin-bottom: var(--spacing-xs);
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
}

.link-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-content {
        margin-bottom: var(--spacing-lg);
        text-align: center;
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tech-container {
        flex-direction: column;
    }
    
    .tech-visualization {
        width: 100%;
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    .logo-container {
        margin-bottom: var(--spacing-md);
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid, .applications-container, .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 涂鸦元素装饰 */
.hero::after,
.features-section::after,
.applications-section::after,
.technology-section::after,
.testimonials-section::after,
.faq-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero::after {
    background-image: url('images/doodle-1.svg');
    top: 50px;
    right: 50px;
}

.features-section::after {
    background-image: url('images/doodle-2.svg');
    bottom: 50px;
    left: 50px;
}

.applications-section::after {
    background-image: url('images/doodle-3.svg');
    top: 100px;
    right: 100px;
}

.technology-section::after {
    background-image: url('images/doodle-4.svg');
    bottom: 100px;
    right: 100px;
}

.testimonials-section::after {
    background-image: url('images/doodle-5.svg');
    top: 100px;
    left: 100px;
}

.faq-section::after {
    background-image: url('images/doodle-6.svg');
    bottom: 100px;
    left: 100px;
}

/* 浮动涂鸦元素 */
.floating-doodles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-doodle {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    animation: float-rotate 30s linear infinite;
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.doodle-star {
    background-image: url('images/doodle-star.svg');
}

.doodle-cloud {
    background-image: url('images/doodle-cloud.svg');
}

.doodle-spiral {
    background-image: url('images/doodle-spiral.svg');
}

.doodle-heart {
    background-image: url('images/doodle-heart.svg');
}

.doodle-bird {
    background-image: url('images/doodle-bird.svg');
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    border: var(--doodle-thickness) solid var(--doodle-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.5rem;
}

/* 生成按钮加载状态 */
.generate-btn.generating {
    background-color: var(--secondary-color);
    position: relative;
}

.generate-btn.generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* 页面载入动画 */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 滚动渐入动画 */
section, .feature-card, .application-category, .testimonial-card, .faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.animate-in, .feature-card.animate-in, .application-category.animate-in, 
.testimonial-card.animate-in, .faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 激活的FAQ标题 */
.faq-item h3.active::after {
    content: var(--faq-icon, '-');
} 