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

:root {
    --primary-grad-start: #667eea;
    --primary-grad-end: #764ba2;
    --secondary-grad-start: #f093fb;
    --secondary-grad-end: #f5576c;
    --accent: #4facfe;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-light: #a0aec0;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    top: 20%;
    right: 5%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    bottom: 30%;
    right: 15%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg);
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lang-btn .lang-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lang-btn:hover .lang-text {
    color: var(--text-primary);
}

.lang-btn.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.lang-btn.active .lang-text {
    color: var(--primary-grad-start);
}

.lang-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-grad-start);
}

.hero-title {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-grad-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.title-sub {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.tech-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    animation: floatCard 6s ease-in-out infinite;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.card-3 {
    bottom: 0;
    right: 20%;
    animation-delay: -4s;
}

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

.tech-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-grad-start);
}

.tech-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Main Content */
.main {
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-grad-start);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
}

.feature-item svg {
    flex-shrink: 0;
    color: #10b981;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.visual-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.visual-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-1 {
    background: #ff5f57;
}

.dot-2 {
    background: #ffbd2e;
}

.dot-3 {
    background: #28ca42;
}

.visual-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    animation: codePulse 2s ease-in-out infinite;
}

.line-1 {
    width: 80%;
    animation-delay: 0s;
}

.line-2 {
    width: 60%;
    animation-delay: 0.2s;
}

.line-3 {
    width: 90%;
    animation-delay: 0.4s;
}

.line-4 {
    width: 70%;
    animation-delay: 0.6s;
}

@keyframes codePulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-grad-start), var(--primary-grad-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.service-icon-wrapper {
    margin-bottom: 20px;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.icon-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 500;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: var(--bg-tertiary);
    line-height: 1;
}

.advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
}

.advantage-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-content {
    animation: fadeInUp 0.8s ease;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 16px;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-grad-start);
}

.contact-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-grad-start);
}

.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-grad-start), var(--primary-grad-end));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

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

.contact-card-inner {
    text-align: center;
    color: white;
    position: relative;
}

.contact-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.contact-card-inner svg {
    position: relative;
    z-index: 1;
}

.contact-card-inner p {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-icon-small {
    width: 32px;
    height: 32px;
    color: var(--primary-grad-start);
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.icp {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
    }

    .brand-name {
        font-size: 18px;
    }

    .lang-btn {
        padding: 6px 12px;
    }

    .lang-btn .lang-text {
        font-size: 13px;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-container {
        padding: 40px 20px;
        gap: 40px;
    }

    .title-main {
        font-size: 42px;
    }

    .title-sub {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .hero-visual {
        height: 250px;
    }

    .tech-card {
        padding: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-visual {
        order: -1;
    }

    .contact-card {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-title {
        font-size: 32px;
    }

    .container {
        padding: 0 16px;
    }

    .service-card,
    .advantage-card {
        padding: 24px;
    }
}
