body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f0f2f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-messages {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
    display: none; /* 初始隐藏 */
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #e9ecef;
    color: #212529;
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: white;
    position: relative;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

.chat-input input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.chat-input input::placeholder {
    color: #adb5bd;
    transition: opacity 0.3s ease;
}

.chat-input input:focus::placeholder {
    opacity: 0.7;
}

.chat-input button {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 23px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
}

.chat-input button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.chat-input button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.chat-input button i {
    font-size: 20px;
}

/* 输入提示样式 */
.input-tips {
    position: absolute;
    bottom: 100%;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.input-tips::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .chat-input {
        background: #2d2d2d;
        border-top-color: #444;
    }
    
    .chat-input input {
        background: #3d3d3d;
        border-color: #444;
        color: #fff;
    }
    
    .chat-input input:focus {
        background: #2d2d2d;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    }
    
    .chat-input input::placeholder {
        color: #888;
    }
    
    .chat-input button {
        background: #3b82f6;
    }
    
    .chat-input button:hover {
        background: #2563eb;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .chat-input {
        padding: 15px;
    }
    
    .chat-input input {
        padding: 10px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .chat-input button {
        width: 42px;
        height: 42px;
    }
    
    .chat-input button i {
        font-size: 18px;
    }
}

/* 输入动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新增样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 28px;
    color: #007bff;
}

.logo h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.main-nav {
    transition: all 0.3s ease;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.main-nav a i {
    font-size: 18px;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo i {
        font-size: 24px;
    }

    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 50%;
        transition: background-color 0.3s;
    }

    .menu-toggle:hover {
        background-color: #f8f9fa;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        width: 20px;
        height: 2px;
        background-color: #2c3e50;
        transition: all 0.3s ease;
    }

    .menu-icon::before {
        top: -5px;
    }

    .menu-icon::after {
        bottom: -5px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: all 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav a i {
        font-size: 20px;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .main-header {
        background: rgba(45, 45, 45, 0.95);
    }

    .logo h1 {
        color: #fff;
    }

    .main-nav a {
        color: #fff;
    }

    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #3b82f6;
    }

    .menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    @media (max-width: 768px) {
        .main-nav {
            background: rgba(45, 45, 45, 0.95);
        }

        .menu-icon,
        .menu-icon::before,
        .menu-icon::after {
            background-color: #fff;
        }
    }
}

/* 优化遮罩层 */
.menu-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

section {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

h2 i {
    margin-right: 8px;
    color: #007bff;
}

.intro-text {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faq-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.faq-item h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.feature-icon {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.chat-input button i {
    font-size: 18px;
}

.main-footer {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 15px;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .chat-box {
        margin-top: 20px;
    }

    .chat-messages {
        height: 350px;
    }

    .message {
        max-width: 85%; /* 移动端消息气泡稍微放宽 */
        font-size: 14px; /* 移动端字体稍小 */
    }

    .chat-input {
        padding: 15px;
    }

    input {
        font-size: 16px; /* 防止iOS自动放大 */
        padding: 8px;
    }

    button {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* FAQ部分移动端优化 */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* 关于我们部分移动端优化 */
    .service-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature {
        padding: 15px;
    }

    /* 整体间距调整 */
    section {
        margin: 20px 0;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    h4 {
        font-size: 15px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }

    .main-footer {
        padding: 15px 0;
        font-size: 14px;
    }

    .logo i {
        font-size: 24px;
    }
    
    .feature-icon {
        font-size: 30px;
    }
    
    .chat-input button i {
        font-size: 16px;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 优化触摸体验 */
@media (hover: none) {
    .main-nav a {
        padding: 8px 15px; /* 增加点击区域 */
    }

    button {
        -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    }

    input, button {
        appearance: none; /* 移除默认样式 */
        -webkit-appearance: none;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
    }

    .main-header {
        background: #2d2d2d;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .main-nav a {
        color: #fff;
    }

    .main-nav a:hover {
        background-color: #3d3d3d;
    }

    .chat-box, section {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .bot-message {
        background: #3d3d3d;
        color: #fff;
    }

    .faq-item, .feature {
        background: #3d3d3d;
    }

    h2, h3, h4, p {
        color: #fff;
    }

    input {
        background: #3d3d3d;
        color: #fff;
        border-color: #4d4d4d;
    }

    input::placeholder {
        color: #888;
    }

    .logo i,
    h2 i,
    .feature-icon {
        color: #3b82f6;
    }
}

/* 平台链接按钮样式 */
.button-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

.platform-link {
    background: #ff4d4d;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(255, 77, 77, 0.2);
}

.platform-link:hover {
    background: #ff3333;
}

.platform-link i {
    margin-right: 5px;
}

/* 移动端按钮样式优化 */
@media (max-width: 768px) {
    .platform-link {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .button-container {
        margin-top: 3px;
    }
}

/* 添加菜单按钮样式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 修改移动端样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav a {
        display: block;
        padding: 10px 15px;
        font-size: 16px;
    }

    .header-container {
        flex-direction: row;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        background-color: #fff;
    }

    .menu-toggle.active .menu-icon {
        background-color: transparent;
    }

    .main-nav {
        background: #2d2d2d;
    }

    @media (max-width: 768px) {
        .main-nav {
            background: #2d2d2d;
            box-shadow: -2px 0 5px rgba(0,0,0,0.3);
        }
    }
}

/* 防止菜单打开时页面滚动 */
body.menu-open {
    overflow: hidden;
}

/* 添加遮罩层样式 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.menu-overlay.active {
    display: block;
}

/* SEO内容样式 */
.seo-content {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.seo-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.seo-item h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.seo-item h3 i {
    color: #007bff;
    font-size: 20px;
}

.seo-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.seo-tags span {
    background: white;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .seo-content {
        background: #1a1a1a;
    }

    .seo-item {
        background: #2d2d2d;
    }

    .seo-item h3 {
        color: #fff;
    }

    .seo-item p {
        color: #aaa;
    }

    .seo-tags span {
        background: #2d2d2d;
        color: #aaa;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .seo-content {
        padding: 30px 0;
        margin-top: 30px;
    }

    .seo-item {
        padding: 15px;
    }

    .seo-item h3 {
        font-size: 16px;
    }

    .seo-item p {
        font-size: 14px;
    }

    .seo-tags span {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* 暗色模式下的FAQ项目样式优化 */
@media (prefers-color-scheme: dark) {
    .faq-item {
        background: #2d2d2d;
    }
    
    .faq-item h3 {
        color: #fff;
    }
    
    .faq-item h3 i {
        color: #3b82f6;
    }
}

/* SEO文本样式 */
.seo-text {
    margin-top: 30px;
    text-align: center;
    padding: 0 20px;
}

.seo-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 更新SEO标签样式 */
.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 20px;
}

.seo-tags span {
    background: white;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.seo-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .seo-text p {
        color: #aaa;
    }
    
    .seo-tags span:hover {
        background: #3d3d3d;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .seo-text {
        margin-top: 20px;
    }
    
    .seo-text p {
        font-size: 13px;
    }
    
    .seo-tags {
        gap: 8px;
        margin: 0 10px;
    }
    
    .seo-tags span {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 价格部分样式 */
.price-section {
    padding: 40px 0;
    background: #fff;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.price-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.price-item:hover {
    transform: translateY(-5px);
}

.price-item.popular {
    border: 2px solid #007bff;
}

.price-item.popular::after {
    content: '推荐';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.price-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price-tag {
    font-size: 28px;
    color: #007bff;
    font-weight: bold;
    margin-top: 10px;
}

.price-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-item ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #666;
}

.price-item ul li i {
    color: #28a745;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .price-section {
        background: #1a1a1a;
    }
    
    .price-item {
        background: #2d2d2d;
    }
    
    .price-item ul li {
        color: #aaa;
    }
    
    .price-header {
        border-bottom-color: #444;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .price-section {
        padding: 30px 0;
    }
    
    .price-grid {
        gap: 15px;
        margin-top: 20px;
    }
    
    .price-item {
        padding: 20px;
    }
    
    .price-tag {
        font-size: 24px;
    }
}

/* 消息样式优化 */
.message p {
    margin: 0;
    padding: 2px 0;
}

.button-container {
    margin-top: 10px;
    text-align: center;
    background: transparent !important;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
}

.platform-link:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.platform-link i {
    font-size: 18px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .platform-link {
        background: #3b82f6;
    }
    
    .platform-link:hover {
        background: #2563eb;
    }
} 