/* 全局样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    outline: 2px solid white;
    outline-offset: -2px;
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    outline: 2px solid white;
    outline-offset: -2px;
}

.btn-beta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-beta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    outline: 2px solid white;
    outline-offset: -2px;
}

.btn:active {
    transform: translateY(-1px);
}

/* 按钮徽章样式 */
.btn-with-badge {
    position: relative;
    overflow: visible;
}

.btn-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    padding: 2px 7px;
    border-radius: 9px;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
    border: 1px solid white;
    z-index: 1;
}

.badge-stable {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-beta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* 下拉菜单样式 */
.btn-with-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.beta-link {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.beta-link i {
    font-size: 12px;
}

.beta-link:hover {
    color: #444;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled .container {
    max-width: 1000px;
    padding: 12px 24px;
    margin: 8px auto;
    background-color: var(--bg-color);
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.nav-buttons.scrolled {
    transform: translateX(-20px);
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 英雄区 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f7ff 100%);
    overflow: hidden;
}

/* 英雄区标题特效 */
.hero-content h1 {
    position: relative;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% 100%;
    animation: gradient-flow 4s linear infinite;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hero-image-container img {
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image-container img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

/* 功能特点 */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.features-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

.features-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* 支持模型 */
.models {
    padding: 100px 0;
}

.models-grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.models-grid::before,
.models-grid::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.models-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.models-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.models-track {
    display: flex;
    gap: 30px;
    animation: scrollModels 10s linear infinite;
    /* 确保有足够的卡片用于无缝滚动 */
    width: max-content;
}

.model-card {
    flex: 0 0 280px;
}

@keyframes scrollModels {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 精确计算滚动距离，使第一组卡片完全滚出视野后，第二组卡片无缝衔接 */
        transform: translateX(calc(-100% / 2));
    }
}

.models-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.models-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.models-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.model-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 280px;
    scroll-snap-align: start;
}

.model-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.model-card img {
    height: 80px;
    margin-bottom: 20px;
}

.model-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.model-card p {
    color: var(--text-light);
}

.add-more .add-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* 订阅方案 */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.pricing-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pricing-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

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

.pricing-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

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

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-bottom-left-radius: var(--border-radius);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.price {
    font-size: 1.2rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    padding: 30px;
}

.pricing-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.pricing-features li .fa-times {
    color: #ff4d4f;
}

.pricing-card .btn {
    margin: 0 30px 30px;
}

/* 技术特点 */
.tech {
    padding: 100px 0;
}

.tech-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tech-image {
    flex: 1;
}

.tech-details {
    flex: 1;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.tech-text h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.tech-text p {
    color: var(--text-light);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.contact-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links-column ul li {
    margin-bottom: 12px;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 动画效果 */
.feature-card, .model-card, .pricing-card, .tech-item, .contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate, .model-card.animate, .pricing-card.animate, .tech-item.animate, .contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    box-shadow: none;
    background-color: transparent;
}

.navbar.scrolled .container {
    max-width: 1000px;
    padding: 12px 24px;
    margin: 8px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: var(--shadow);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .tech-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .nav-links.active, .nav-buttons.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-buttons {
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active i:before {
        content: "\f00d";
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}