/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #202123;
    --secondary-color: #666666;
    --accent-color: #353740;
    --background-color: #FFFFFF;
    --surface-color: #F7F7F8;
    --border-color: #E5E5E5;
    --text-primary: #202123;
    --text-secondary: #6E6E80;
    --max-width: 1400px; /* 从1200px增加到1400px */
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 20px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* 添加容器内元素之间的间距 */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex !important;
    gap: 3rem !important; /* 从6rem减少到3rem */
    align-items: center;
    margin: 0 1rem;
}

.nav-links a,
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem; /* 增加字体大小 */
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: #202123;
    color: white;
    border-radius: 9999px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #353740;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
    background-color: transparent;
    border-radius: 9999px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(32, 33, 35, 0.05);
}

.btn-large {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* Hero Section - 修正移动端显示问题 */
.hero {
    margin-top: 80px;
    padding: 4rem 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    background: rgba(247, 247, 248, 0.7);
    backdrop-filter: blur(5px);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-title {
    background-image: linear-gradient(to right, #4285F4, #9B72CB, #D9534F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support -webkit-text-fill-color */
}

@media (min-width: 992px) {
    .hero .container {
        flex-direction: row;
        text-align: left;
        gap: 4rem; /* 调整桌面端间距 */
    }

    .hero-content {
        flex: 1;
        max-width: 50%;
    }
    
    .hero-visual {
        flex: 1;
        max-width: 50%;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
}

    .hero-image {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.gradient-background {
    background: transparent;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gradient-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(32, 33, 35, 0.02), rgba(32, 33, 35, 0.08));
    opacity: 0.7;
}

/* 代码动画样式 - 修正移动端显示 */
.code-animation {
    grid-area: hero-area;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: 500px;
    z-index: 1;
    pointer-events: none;
    margin-top: 2rem;
}

.code-block {
    background-color: rgba(10, 10, 25, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    color: #00fff7;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 0 8px #00fff7, 0 0 15px #00fff7;
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3), 0 2px 8px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.code-block code {
    display: block;
}

/* 代码语法高亮 */
.code-block .keyword {
    color: #ff79c6;
    text-shadow: 0 0 5px #ff79c6;
}

.code-block .string {
    color: #f1fa8c;
    text-shadow: 0 0 5px #f1fa8c;
}

.code-block .comment {
    color: #6272a4;
    text-shadow: 0 0 5px #6272a4;
}

.code-block .function {
    color: #50fa7b;
    text-shadow: 0 0 5px #50fa7b;
}

.code-block .variable {
    color: #8be9fd;
    text-shadow: 0 0 5px #8be9fd;
}

/* 代码行动画 */
.code-line {
    opacity: 0;
    transform: translateX(15px);
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

/* AI Chat Section - 修正移动端回复显示问题 */
.ai-chat-section {
    padding: 80px 0;
    background-image: url('../images/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}
.ai-chat-section .container {
    position: relative;
    z-index: 1;
}

.chat-wrapper {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
}

.chat-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: #202123;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.chat-interface {
    position: relative;
}

/* 聊天消息区域 - 修正显示问题 */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding: 0;
    display: none;
    background-color: #f7f7f8;
    border-radius: 12px;
    min-height: 100px; /* 确保有最小高度 */
}

.chat-messages.active {
    display: block;
    padding: 20px;
}

/* 聊天消息样式 - 修正移动端显示 */
.chat-message {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 15px;
    width: fit-content;
    max-width: 85%;
}

.chat-message.user {
    background-color: #f7f7f8;
    margin-left: auto;
    color: #202123;
    border-color: #d1d1d3;
}

.chat-message:not(.user) {
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    color: #353740;
    margin-right: auto;
}

/* 确保AI回复消息可见 */
.chat-message:last-child {
    animation: fadeInUp 0.3s ease;
}

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

.chat-messages ul,
.chat-messages ol {
    padding-left: 20px;
    list-style-position: inside;
}

.chat-messages li {
    margin-bottom: 5px;
}

/* 输入框容器 */
.chat-input-container {
    margin-bottom: 24px;
}

.chat-input-wrapper {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 24px;
    padding: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 1px transparent;
}

.chat-input-wrapper:hover {
    border-color: #d1d1d3;
}

.chat-input-wrapper:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 1px #10a37f;
}

/* 输入框 */
.chat-input {
    width: 100%;
    padding: 12px 52px 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 24px;
    background: transparent;
    color: #202123;
    font-family: inherit;
}

.chat-input::placeholder {
    color: #8e8ea0;
}

/* 发送按钮 */
.send-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background-color: #f7f7f8;
    color: #8e8ea0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:not(:disabled):hover {
    background-color: #202123;
    color: #ffffff;
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.send-button svg {
    width: 20px;
    height: 20px;
    transform: rotate(90deg);
}

/* 建议标签 */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggestion-chip {
    padding: 6px 14px;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    background-color: #ffffff;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background-color: #f7f7f8;
    border-color: #d1d1d3;
    color: #202123;
}

.suggestion-chip:active {
    transform: scale(0.98);
}

/* 自定义滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d1d3;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #8e8ea0;
}

/* 聊天激活后的样式调整 */
.chat-interface.chat-active .chat-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.chat-interface.chat-active .chat-messages {
    display: block;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* 产品展示 */
.products {
    background-color: var(--surface-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.product-icon {
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.product-link:hover {
    gap: 0.75rem;
}

/* 研究领域 */
.research-header {
    text-align: center;
    margin-bottom: 3rem;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.research-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.research-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.research-icon {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.research-card:hover .research-icon {
    transform: scale(1.1);
}

.research-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 模型介绍模块样式 */
.models-section {
    padding: 80px 0;
    background-color: var(--surface-color);
}

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

.model-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.model-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.model-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.model-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3px;
    font-weight: 500;
}

/* 安全部分 */
.safety {
    background-color: var(--surface-color);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.safety-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.safety-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.safety-list {
    list-style: none;
    margin-bottom: 2rem;
}

.safety-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.safety-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

.safety-shield {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.safety-visual:hover .safety-shield {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #202123 0%, #353740 100%);
    color: white;
    text-align: center;
}

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

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--surface-color);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页脚 */
.footer {
    background-color: var(--surface-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 移动端和桌面端显示类 */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航链接 */
.mobile-nav-links {
    position: fixed; /* 改回 fixed 定位 */
    top: 70px; /* 导航栏高度 */
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    visibility: hidden;
    opacity: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-nav-links a {
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    writing-mode: horizontal-tb; /* 确保链接文字水平显示 */
    text-orientation: mixed;
    white-space: normal; /* 允许文字换行 */
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器的长单词换行 */
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

body.menu-open {
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none !important; /* 在移动端强制隐藏桌面导航链接 */
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 20px;
    }

    .nav-left {
        justify-content: flex-start;
    }

    .nav-right {
        display: flex !important;
        margin-left: auto;
        position: relative; /* Add relative positioning to nav-right */
    }
    
    /* 移动端导航链接样式 */
    .mobile-nav-links {
        position: fixed;
        top: 70px; /* 导航栏高度 */
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border-color);
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        max-width: 100%;
        overflow: hidden;
        width: 100%; /* 确保全宽 */
    }
    
    .mobile-nav-links a {
        display: block;
        width: 100%;
        text-align: left;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Hero Section 移动端修正 */
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "hero-content"
            "hero-visual";
        padding: 2rem 20px;
        min-height: auto;
        gap: 2rem;
    }
    
    .hero-content {
        grid-area: hero-content;
        text-align: center;
        order: 1;
    }
    
    .hero-visual {
        grid-area: hero-visual;
        order: 2;
        display: block;
        position: relative;
        margin-top: 2rem;
    }
    
    .code-animation {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 2;
    }
    
    .code-block {
        font-size: 12px;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    /* 聊天区域移动端修正 */
    .ai-chat-section {
        padding: 40px 20px;
    }
    
    .chat-wrapper {
        padding: 0;
        max-width: 100%;
    }
    
    .chat-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .chat-input {
        font-size: 16px;
        padding: 12px 48px 12px 16px;
    }
    
    .send-button {
        width: 36px;
        height: 36px;
    }
    
    .suggestion-chip {
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .chat-message {
        font-size: 14px;
        padding: 12px 16px;
        max-width: 90%;
    }
    
    .chat-messages {
        max-height: 300px;
        padding: 15px;
    }
    
    /* 其他移动端修正 */
    .safety-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .safety-visual {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: 1.5rem 15px;
        gap: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .product-grid,
    .research-areas,
    .models-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .chat-message {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 95%;
    }
    
    .suggestion-chip {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 桌面端Hero布局 */
@media (min-width: 769px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "hero-content hero-visual";
        padding: 4rem 120px 4rem 120px;
        align-items: center;
    }
    
    .hero-content {
        grid-area: hero-content;
        text-align: left;
        padding-right: 2rem;
    }
    
    .hero-visual {
        grid-area: hero-visual;
        justify-content: flex-end;
    }
    
    .code-animation {
        width: 85%;
        max-width: 500px;
        margin: 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}