/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0047FF;
    --secondary-blue: #0091FF;
    --light-blue: #00D4FF;
    --dark-bg: #0a0e27;
    --light-bg: #f5f7fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* 首页Hero区域 */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 科技感背景 */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.tech-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: moveLine 8s linear infinite;
}

.line-1 { left: 10%; animation-delay: 0s; }
.line-2 { left: 25%; animation-delay: 1.5s; }
.line-3 { left: 50%; animation-delay: 3s; }
.line-4 { left: 75%; animation-delay: 4.5s; }
.line-5 { left: 90%; animation-delay: 6s; }

@keyframes moveLine {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Hero内容包装器 - 左右布局 */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 50px;
    gap: 80px;
    position: relative;
    z-index: 1;
}

/* Logo动画区域 - 左侧 */
.logo-animation-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-svg {
    width: 450px;
    height: 450px;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
}

.logo-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawLogoPath 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.moving-dot {
    opacity: 0;
    offset-path: path('M 60 280 L 80 120 L 180 200 L 80 280 Z M 180 200 L 340 80 L 340 240 L 180 200');
    animation: moveDotAlongPath 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes drawLogoPath {
    0% {
        stroke-dashoffset: 1500;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes moveDotAlongPath {
    0% {
        opacity: 1;
        offset-distance: 0%;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        offset-distance: 100%;
    }
}

/* Logo文字 */
.logo-text {
    text-align: center;
    margin-top: 30px;
}

.logo-en {
    font-size: 42px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-cn {
    font-size: 28px;
    color: var(--light-blue);
    opacity: 0.9;
    letter-spacing: 8px;
}

/* Hero文本区域 - 右侧 */
.hero-text-section {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.5s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-large {
    padding: 25px 60px;
    font-size: 24px;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 71, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 71, 255, 0.6);
}

.btn-large i {
    font-size: 28px;
}





/* 通用section样式 */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 关于我们 */
.about-section {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-list i {
    color: var(--primary-blue);
    margin-right: 10px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--white);
}

/* 技术文档 */
.docs-section {
    background: var(--white);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.doc-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 71, 255, 0.15);
    border-color: var(--primary-blue);
}

.doc-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.doc-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.doc-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.doc-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.doc-link:hover {
    color: var(--light-blue);
}

.doc-link i {
    font-size: 14px;
    margin-left: 5px;
}

/* 申请API - 简化版 */
.api-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: var(--white);
}

.api-section .section-title {
    -webkit-text-fill-color: var(--white);
}

.api-simple-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.api-description {
    flex: 1;
}

.api-description h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.api-description p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.api-features {
    list-style: none;
}

.api-features li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.api-features i {
    color: var(--light-blue);
    margin-right: 15px;
    font-size: 20px;
}

.api-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 动态API按钮 */
.btn-api-dynamic {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    border-radius: 60px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 71, 255, 0.4);
}

.btn-api-dynamic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-api-dynamic:hover::before {
    left: 100%;
}

.btn-api-dynamic:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 71, 255, 0.6);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-api-dynamic:hover .btn-icon {
    transform: translateX(5px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-api-dynamic:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.api-url {
    font-size: 16px;
    color: var(--light-blue);
    opacity: 0.8;
    word-break: break-all;
}

/* 联系我们 - 简化版 */
.contact-section {
    background: var(--light-bg);
}

.contact-simple-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 71, 255, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
}

.contact-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 18px;
    color: var(--text-light);
}

.contact-social {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 71, 255, 0.1);
}

.contact-social h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 71, 255, 0.2);
    color: var(--primary-blue);
}

.social-link i {
    font-size: 36px;
    color: var(--primary-blue);
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--light-blue);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 40px;
    }

    .logo-animation-section {
        margin-bottom: 20px;
    }

    .logo-svg {
        width: 350px;
        height: 350px;
    }

    .logo-en {
        font-size: 32px;
    }

    .logo-cn {
        font-size: 22px;
    }

    .btn-large {
        padding: 20px 50px;
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo-svg {
        width: 280px;
        height: 280px;
    }

    .logo-en {
        font-size: 26px;
    }

    .logo-cn {
        font-size: 18px;
        letter-spacing: 5px;
    }

    .btn-large {
        padding: 18px 40px;
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .logo-svg {
        width: 240px;
        height: 240px;
    }

    .logo-en {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .logo-cn {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .btn-large {
        padding: 15px 35px;
        font-size: 16px;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}
