/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}



/* 页面内容渐显动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

.fade-in-delay-4 {
    transition-delay: 0.8s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 灵动岛效果 */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 1200px;
    z-index: 1000;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
    pointer-events: none;
}

.nav-container {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 800px;
}

.nav-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-logo a:hover {
    color: #ffffff;
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-logo a:visited {
    color: #ffffff;
}

.nav-logo a:active {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-menu a:not(.btn-primary):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-menu .btn-primary {
    background: #ffffff;
    color: #000000 !important;
    padding: 9px 18px;
    border-radius: 25px;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px) scale(1.05);
}

/* Hero区域 - Next.js风格增强 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff url('https://zz.snpan.cn/file/ff5b71888f6e059.png') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
    animation: float-bg 20s ease-in-out infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* Hero内容区域 - Next.js风格增强 */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    background: #000000;
    color: #ffffff;
    font-weight: 400;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 12px;
}

.hero-description {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Next.js风格按钮增强 */
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    color: #666666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Next.js风格演示区域增强 */
.hero-demo {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-demo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    border-radius: 20px;
    z-index: -1;
    animation: pulse-bg 4s ease-in-out infinite;
}

.demo-window {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.window-header {
    background: rgba(26, 26, 26, 0.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28ca42;
}

.window-title {
    color: #888888;
    font-size: 0.85rem;
    font-weight: 500;
}

.window-content {
    padding: 24px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 1s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1.5s;
}

.terminal-line:nth-child(3) {
    animation-delay: 2s;
}

.prompt {
    color: #22c55e;
    margin-right: 8px;
}

.command {
    color: #e5e5e5;
}

/* 服务区域 - Next.js风格 */
.services {
    padding: 120px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #666666;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-card li {
    padding: 6px 0;
    color: #666666;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.service-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.service-link:hover {
    color: #666666;
}

/* API支持区域 - Next.js风格 */
.api-support {
    padding: 80px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.api-support h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1rem;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.support-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.support-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.support-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.support-info {
    flex: 1;
}

.support-info h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 4px;
    font-weight: 600;
}

.support-info p {
    color: #666666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

.support-link {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.support-link:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.support-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.support-link:hover i {
    transform: translateX(2px);
}

/* 页脚 - Next.js风格 */
.footer {
    background: white;
    color: #666666;
    padding: 80px 0 40px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr;
    gap: 100px 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #000000;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666666;
}

.social-links a:hover {
    background: #e5e5e5;
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    text-align: center;
    color: #999999;
    font-size: 0.85rem;
}

/* Next.js风格动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-bg {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulse-bg {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 滚动动画观察器 */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: #000000;
    color: white;
}