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

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background: #fff;
}

/* Hero Section */
.hero {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
/* 增加了上下内边距，你可以根据视觉效果调整这个值 */
padding: 140px 20px; 
text-align: center;
color: white;
position: relative;
overflow: hidden;
/* 删除了 min-height: 100vh; */
display: flex;
align-items: center;
justify-content: center;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
animation: float 20s ease-in-out infinite;
}

@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}

.hero-content {
max-width: 1200px;
width: 100%;
position: relative;
z-index: 2;
}

.hero h1 {
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 800;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
animation: slideInUp 1s ease-out;
}

.hero .subtitle {
font-size: clamp(1rem, 3vw, 1.4rem);
margin-bottom: 30px;
opacity: 0.95;
font-weight: 300;
animation: slideInUp 1s ease-out 0.2s both;
}

.hero .description {
font-size: clamp(0.9rem, 2.5vw, 1.1rem);
margin-bottom: 40px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
opacity: 0.9;
animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.cta-buttons {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
padding: 15px 30px;
border: none;
border-radius: 50px;
font-size: clamp(0.9rem, 2.5vw, 1.1rem);
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
min-width: 160px;
white-space: nowrap;
}

.btn-primary {
background: #fff;
color: #1e3a8a;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
background: transparent;
color: white;
border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
background: rgba(255,255,255,0.1);
border-color: white;
}

/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Section Styles */
.section {
padding: 80px 0;
}

.section-title {
text-align: center;
margin-bottom: 60px;
}

.section-title h2 {
font-size: clamp(1.8rem, 4vw, 2.5rem);
color: #1e3a8a;
margin-bottom: 15px;
font-weight: 700;
}

.section-title p {
font-size: clamp(1rem, 2.5vw, 1.2rem);
color: #64748b;
max-width: 600px;
margin: 0 auto;
}

/* Features Section */
.features {
background: #f8fafc;
}

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

.feature-card {
background: white;
padding: 40px 25px;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
transform: scaleX(0);
transition: transform 0.3s ease;
}

.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
transform: scaleX(1);
}

.feature-icon {
width: 70px;
height: 70px;
background: linear-gradient(135deg, #3b82f6, #60a5fa);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
font-size: 1.8rem;
color: white;
}

.feature-card h3 {
font-size: clamp(1.2rem, 3vw, 1.5rem);
color: #1e3a8a;
margin-bottom: 15px;
font-weight: 600;
}

.feature-card p {
color: #64748b;
line-height: 1.7;
font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Stats Section */
.stats {
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
color: white;
text-align: center;
}

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

.stat-item h3 {
font-size: clamp(2rem, 5vw, 3rem);
font-weight: 800;
margin-bottom: 10px;
color: #60a5fa;
}

.stat-item p {
font-size: clamp(1rem, 2.5vw, 1.1rem);
opacity: 0.9;
}

/* How It Works */
.how-it-works {
background: white;
}

.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-top: 60px;
}

.step {
text-align: center;
position: relative;
}

.step-number {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #3b82f6, #60a5fa);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin: 0 auto 25px;
}

.step h3 {
font-size: clamp(1.1rem, 3vw, 1.3rem);
color: #1e3a8a;
margin-bottom: 15px;
font-weight: 600;
}

.step p {
color: #64748b;
line-height: 1.6;
font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Pricing Section */
.pricing {
background: #f8fafc;
}

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

.pricing-card {
background: white;
border-radius: 20px;
padding: 40px 30px;
text-align: center;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
transition: transform 0.3s ease;
position: relative;
}

.pricing-card.featured {
border: 3px solid #3b82f6;
transform: scale(1.05);
}

.pricing-card.featured::before {
content: '推荐';
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
background: #3b82f6;
color: white;
padding: 5px 20px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
}

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

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

.pricing-card h3 {
font-size: 1.5rem;
color: #1e3a8a;
margin-bottom: 15px;
font-weight: 600;
}

.pricing-card .price {
font-size: 2.5rem;
color: #3b82f6;
font-weight: 800;
margin-bottom: 5px;
}

.pricing-card .price-period {
color: #64748b;
margin-bottom: 30px;
}

.pricing-features {
list-style: none;
margin-bottom: 30px;
}

.pricing-features li {
color: #64748b;
margin-bottom: 10px;
padding-left: 20px;
position: relative;
}

.pricing-features li::before {
content: '✓';
position: absolute;
left: 0;
color: #10b981;
font-weight: bold;
}

/* Testimonials Section */
.testimonials {
background: white;
}

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

.testimonial-card {
background: #f8fafc;
padding: 30px;
border-radius: 15px;
position: relative;
}

.testimonial-card::before {
content: '"';
position: absolute;
top: -10px;
left: 20px;
font-size: 4rem;
color: #3b82f6;
opacity: 0.3;
}

.testimonial-text {
color: #64748b;
margin-bottom: 20px;
font-style: italic;
line-height: 1.7;
}

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

.testimonial-avatar {
width: 50px;
height: 50px;
background: linear-gradient(135deg, #3b82f6, #60a5fa);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}

.testimonial-info h4 {
color: #1e3a8a;
font-weight: 600;
margin-bottom: 5px;
}

.testimonial-info p {
color: #64748b;
font-size: 0.9rem;
}

/* FAQ Section */
.faq {
background: #f8fafc;
}

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

.faq-item {
background: white;
border-radius: 10px;
margin-bottom: 15px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
padding: 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
border: none;
background: none;
width: 100%;
text-align: left;
font-size: 1.1rem;
font-weight: 600;
color: #1e3a8a;
}

.faq-question:hover {
background: #f8fafc;
}

.faq-icon {
transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
padding: 0 20px 20px;
max-height: 200px;
}

.faq-answer p {
color: #64748b;
line-height: 1.6;
}

/* CTA Section */
.cta-section {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
text-align: center;
}

.cta-content {
max-width: 600px;
margin: 0 auto;
}

.cta-section h2 {
font-size: clamp(1.8rem, 4vw, 2.5rem);
color: #1e3a8a;
margin-bottom: 20px;
font-weight: 700;
}

.cta-section p {
font-size: clamp(1rem, 2.5vw, 1.2rem);
color: #64748b;
margin-bottom: 40px;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
.hero {
    padding: 100px 15px; /* 同样可以适当调整 padding */
    /* 删除了 min-height: 80vh; */
}
        
.btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    margin: 5px 0;
}

.cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section {
    padding: 60px 0;
}

.features-grid,
.pricing-grid,
.testimonials-grid,
.steps {
    grid-template-columns: 1fr;
    gap: 20px;
}

.pricing-card.featured {
    transform: none;
    margin-top: 20px;
}

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

.stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card,
.pricing-card,
.testimonial-card {
    padding: 30px 20px;
}
}

@media (max-width: 480px) {
.hero {
    padding: 40px 10px;
}

.container {
    padding: 0 15px;
}

.btn {
    font-size: 1rem;
    padding: 12px 15px;
}
}

/* Animations on scroll */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.qr-container {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.qr-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.qr-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-login {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 14px;
    }
    
    .qr-image {
        width: 120px;
        height: 120px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}