/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
    padding: 1rem 0;
}

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

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

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

.nav-logo h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ffffff;
    color: #667eea;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-color: #667eea;
    background: #ffffff;
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
}

.btn-login i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.03) 0%, transparent 50%);
    animation: backgroundShift 25s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(-15px) translateY(-8px);
    }
    66% {
        transform: translateX(15px) translateY(8px);
    }
}

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

.hero-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    z-index: 2;
}

/* 背景装饰元素 */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: decorationFloat 15s ease-in-out infinite;
}

.decoration-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    top: 30px;
    right: 40px;
    animation-delay: 0s;
    opacity: 0.08;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    bottom: 60px;
    left: 30px;
    animation-delay: 5s;
    opacity: 0.06;
}

.decoration-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    top: 50%;
    left: 20px;
    animation-delay: 10s;
    opacity: 0.05;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.1);
    min-width: 100px;
}

.floating-card:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.2);
}

.floating-card i {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* 卡片位置 */
.card-1 {
    top: 40px;
    left: 80px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40px;
    right: 80px;
    animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
    top: 180px;
    left: 60px;
    animation: float 6s ease-in-out infinite 2s;
}

.card-4 {
    top: 180px;
    right: 60px;
    animation: float 6s ease-in-out infinite 3s;
}

.card-5 {
    top: 320px;
    left: 100px;
    animation: float 6s ease-in-out infinite 4s;
}

.card-6 {
    top: 320px;
    right: 100px;
    animation: float 6s ease-in-out infinite 5s;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #fff;
}

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Scenarios Section */
.scenarios {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.scenario-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scenario-card:hover {
    transform: translateY(-3px);
}

.scenario-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.scenario-card h4 {
    color: #333;
    font-size: 1rem;
    margin: 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.about-feature ul {
    list-style: none;
    padding-left: 0;
}

.about-feature li {
    padding: 0.25rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.about-feature li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content-simple {
    display: flex;
    justify-content: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* 联系我们模块二维码样式 */
.contact-qr-section {
    max-width: 1000px;
    margin: 0 auto;
}

.qr-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.qr-item-large {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
}

.qr-item-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.qr-code-large {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.qr-code-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.qr-info p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.contact-extra-info {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}


/* Footer */
.footer {
    background: #f8f9fa;
    color: #333;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #333;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* 联系我们二维码样式 */
.contact-qr {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.qr-code {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: translateY(-2px);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.qr-item p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        display: block;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-container {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0;
    }
    
    .btn-login {
        padding: 8px 18px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .btn-login i {
        font-size: 0.85rem;
    }
    
    .btn-login span {
        display: inline-block;
    }
    
    .nav-toggle {
        display: block;
        margin-left: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        width: 350px;
        height: 400px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
    
    /* 移动端卡片位置调整 */
    .card-1 {
        top: 30px;
        left: 40px;
    }
    
    .card-2 {
        top: 30px;
        right: 40px;
    }
    
    .card-3 {
        top: 120px;
        left: 30px;
    }
    
    .card-4 {
        top: 120px;
        right: 30px;
    }
    
    .card-5 {
        top: 210px;
        left: 60px;
    }
    
    .card-6 {
        top: 210px;
        right: 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-stats {
        order: 2;
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .qr-item-large {
        flex-direction: column;
        text-align: center;
        min-width: 280px;
        padding: 1.5rem;
    }
    
    .qr-code-large {
        width: 100px;
        height: 100px;
    }
    
    .contact-extra-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-qr {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .qr-item {
        min-width: 70px;
    }
    
    .qr-code {
        width: 70px;
        height: 70px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-visual {
        width: 300px;
        height: 350px;
    }
    
    .floating-card {
        padding: 0.8rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    /* 小屏幕卡片位置调整 */
    .card-1 {
        top: 20px;
        left: 35px;
    }
    
    .card-2 {
        top: 20px;
        right: 35px;
    }
    
    .card-3 {
        top: 100px;
        left: 25px;
    }
    
    .card-4 {
        top: 100px;
        right: 25px;
    }
    
    .card-5 {
        top: 180px;
        left: 50px;
    }
    
    .card-6 {
        top: 180px;
        right: 50px;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

.feature-card,
.scenario-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}
