/* 基础样式和CSS变量 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* 暗色主题变量 */
.dark-theme {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --dark-color: #f9fafb;
    --light-color: #111827;
    --gray-color: #d1d5db;
    --gray-light: #374151;
    --white: #1f2937;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: var(--transition);
}

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

/* 排版 */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

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

.highlight {
    color: var(--primary-color);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dark-theme .header {
    background-color: rgba(31, 41, 55, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--gray-color);
    color: var(--white);
}

/* 导航右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.hamburger:hover {
    background-color: var(--gray-color);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

.dark-theme .hamburger-line {
    background-color: var(--light-color);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 英雄区域 */
.hero {
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

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

.ai-orb {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.orb-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

/* 模型展示区域 */
.models-section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.model-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.model-card.coming-soon {
    opacity: 0.8;
    cursor: default;
}

.model-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--gray-light);
}

.model-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

.model-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.model-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--gray-light);
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.model-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* 关于我们区域 */
.about-section {
    padding: 100px 0;
    background-color: var(--gray-light);
    border-radius: 40px 40px 0 0;
    margin-top: 50px;
}

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

.about-text {
    flex: 1;
}

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

.about-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #0ea271);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-info p {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

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

.footer-bottom p {
    margin-bottom: 10px;
}

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

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */

/* 平板和笔记本电脑 */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }
}

/* 平板和大型手机 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .nav-right {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .dark-theme .nav-links {
        background-color: var(--light-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

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

    .hero {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* 中等手机 (iPhone 6/7/8/X, 375px-414px) */
@media (max-width: 414px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 16px;
    }

    .model-card {
        padding: 24px;
    }

    .model-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .model-name {
        font-size: 1.3rem;
    }

    .btn {
        padding: 14px 28px; /* 增大触摸目标 */
        min-height: 48px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* 小手机 (iPhone SE/5, 320px-374px) */
@media (max-width: 374px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .container {
        padding: 0 12px;
    }

    .model-card {
        padding: 20px;
    }

    .model-name {
        font-size: 1.2rem;
    }

    .model-desc {
        font-size: 0.9rem;
    }

    .tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .ai-orb, .about-orb {
        width: 220px;
        height: 220px;
    }

    .orb-inner {
        width: 130px;
        height: 130px;
    }

    .about-stats {
        gap: 15px;
    }

    .stat h4 {
        font-size: 2rem;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }
}

/* 超小手机 (非常小的设备) */
@media (max-width: 320px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero {
        padding: 140px 0 70px;
    }

    .ai-orb, .about-orb {
        width: 200px;
        height: 200px;
    }

    .orb-inner {
        width: 120px;
        height: 120px;
    }

    .model-card {
        padding: 18px;
    }

    .model-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-info h3,
    .footer-links h3,
    .footer-social h3 {
        font-size: 1.3rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero .container {
        flex-direction: row;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .ai-orb {
        width: 200px;
        height: 200px;
    }

    .orb-inner {
        width: 120px;
        height: 120px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果，用点击状态替代 */
    .model-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .nav-links a:hover::after {
        width: 0;
    }

    .social-icons a:hover {
        transform: none;
    }

    /* 增加触摸目标大小 */
    .nav-links a {
        padding: 8px 0;
    }

    .tag {
        padding: 6px 12px;
    }

    /* 优化按钮触摸体验 */
    .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .btn:active {
        transform: scale(0.98);
    }

    .model-card:active {
        transform: scale(0.99);
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title, .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 折叠屏设备优化 */
@media (max-width: 768px) and (max-height: 600px) {
    .hero {
        padding: 130px 0 70px;
    }

    .models-section,
    .about-section {
        padding: 70px 0;
    }
}