/* Base styles and variables */
:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    --accent: #f472b6;
    --accent-light: #fbcfe8;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --background: #ffffff;
    --radius: 8px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Button styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-button {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4);
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.outline-button:hover {
    background-color: var(--primary);
    color: white;
}

.accent-button {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(244, 114, 182, 0.4);
}

.accent-button:hover {
    background-color: #ec4899;
    transform: translateY(-2px);
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hero section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #ddd6fe, #ede9fe);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h2 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Features section */
.features {
    padding: 100px 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    margin-top: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    background-color: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* How-to section */
.how-to {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
}

.steps {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

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

.step-content {
    flex: 1;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Services section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
}

.services .section-header .tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #ede9fe;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Call to Action section */
.cta {
    padding: 100px 0;
    background-color: #f8fafc;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent), #d946ef);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer styles */
footer {
    padding: 3rem 0;
    background-color: var(--dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-legal {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .hero {
        padding: 60px 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services {
        clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 1rem;
    }
}
