/* 基础重置和通用设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4e54c8;
    --primary-dark: #363795;
    --secondary-color: #ff7a45;
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-text: #777;
    --light-gray: #eee;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* 头部导航样式 */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo p {
    font-size: 0.9rem;
    color: var(--light-text);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li:last-child {
    margin-left: 30px;
}

/* 首页英雄区块 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

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

.hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

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

.hero-buttons .btn-primary:hover {
    background-color: #e86a3a;
}

.hero-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* 特色功能区块 */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    filter: invert(37%) sepia(74%) saturate(1242%) hue-rotate(225deg) brightness(88%) contrast(93%);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-item p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* 工作原理区块 */
.how-it-works {
    padding: 100px 0;
    background-color: var(--background-color);
}

.steps {
    margin-top: 50px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-areas: 
        "number content image";
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    grid-area: number;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    grid-area: content;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.step-content p {
    color: var(--light-text);
}

.step-image {
    grid-area: image;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--background-color);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon {
    width: 120px;
    height: 120px;
    color: var(--primary-color);
    filter: invert(37%) sepia(74%) saturate(1242%) hue-rotate(225deg) brightness(88%) contrast(93%);
}

/* 作品展示区块 */
.examples {
    padding: 100px 0;
    background-color: var(--white);
}

/* 原始展示样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 变形前后对比样式 */
.transformation-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 30px;
}

.transform-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.original-photo, .result-figure {
    width: 40%;
    text-align: center;
}

.original-photo img, .result-figure img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0 auto 15px;
    object-fit: contain;
    height: 450px;
    width: 100%;
    object-position: center;
}

.original-photo h4, .result-figure h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.transform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
}

.transform-arrow img {
    width: 60px;
    height: auto;
    filter: invert(37%) sepia(74%) saturate(1242%) hue-rotate(225deg) brightness(88%) contrast(93%);
}

/* 价格方案区块 */
.pricing {
    padding: 100px 0;
    background-color: var(--background-color);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-plan {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.pricing-plan:hover {
    transform: translateY(-10px);
}

.pricing-plan.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-plan.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.8rem;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: var(--light-text);
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-color);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-footer {
    text-align: center;
}

.btn-plan {
    width: 100%;
}

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

.btn-featured:hover {
    background-color: #e86a3a;
}

/* 用户评价区块 */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* FAQ区块 */
.faq {
    padding: 100px 0;
    background-color: var(--background-color);
}

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

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer p {
    color: var(--light-text);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 联系我们区块 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.contact .section-title, 
.contact .section-description {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    background-color: var(--primary-color);
}

.contact-info {
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    opacity: 0.8;
}

/* 页脚 */
.footer {
    padding: 80px 0 30px;
    background-color: #2a2d40;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    opacity: 0.8;
    margin-top: 15px;
    line-height: 1.7;
}

.footer-links h3,
.footer-legal h3,
.footer-about h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-legal h3:after,
.footer-about h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-legal ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-credits a {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .step {
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "number content"
            "image image";
    }
    
    .step-image {
        margin-top: 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .transform-pair {
        flex-direction: column;
        gap: 20px;
    }
    
    .original-photo, .result-figure {
        width: 80%;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 10px;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .pricing-plan.featured:hover {
        transform: translateY(-10px);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .step {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "number"
            "content"
            "image";
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
    
    .original-photo, .result-figure {
        width: 100%;
    }
    
    .original-photo img, .result-figure img {
        height: auto;
    }
}

/* Additional styling for SEO optimization */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

/* Improve accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Optimize for mobile first */
@media screen and (min-width: 768px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

/* Form success message */
.form-success {
    text-align: center;
    padding: 30px;
}

.form-success h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.form-success p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Page loading animation */
body.loaded {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 