/* 基础样式 */
:root {
    --primary-color: #2563eb; /* 主色调 */
    --secondary-color: #10b981; /* 辅助色 */
    --accent-color: #f97316; /* 强调色 */
    --dark-color: #1e293b; /* 深色 */
    --light-color: #f8fafc; /* 浅色 */
    --text-color: #334155; /* 文本色 */
    --gray-color: #94a3b8; /* 灰色 */
    --success-color: #22c55e; /* 成功色 */
    --error-color: #ef4444; /* 错误色 */
    --border-radius: 8px; /* 边框圆角 */
    --box-shadow: 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;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

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

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.company-name {
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

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

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

.nav ul li a:hover:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 首屏部分 */
.hero-section {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 0 auto;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 30px;
    animation: float 6s ease-in-out infinite;
}

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

/* 关于我们部分 */
.about-section {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text.full-width {
    flex: 1;
    max-width: 100%;
}

.company-values {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.value-item {
    text-align: center;
    flex: 1;
    padding: 25px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.about-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* 产品展示部分 */
.products-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.product-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.product-info {
    flex: 1;
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: var(--box-shadow);
}

.product-info h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.product-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.app-links {
    margin-top: auto;
    padding-bottom: 10px;
}

.app-store-link img {
    height: 50px;
}

.product-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.product-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* 使用场景部分 */
.use-cases-section {
    padding: 100px 0;
    background-color: white;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.use-case {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.use-case:hover {
    transform: translateY(-10px);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.use-case-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.use-case h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 联系我们部分 */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    margin: 0 auto;
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    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 2px rgba(37, 99, 235, 0.2);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
}

.footer-logo .company-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: block;
}

.footer-links {
    flex: 1;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-social {
    flex: 1;
}

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

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

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

.social-icons i {
    font-size: 1.2rem;
}

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content,
    .product-showcase {
        flex-direction: column;
    }

    .about-image,
    .product-image {
        margin-top: 50px;
        max-width: 100%;
    }

    .use-cases {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: var(--transition);
        padding: 30px;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav ul li {
        margin: 0 0 20px 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .company-values {
        flex-direction: column;
    }

    .value-item {
        margin-bottom: 20px;
    }

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

    .footer-logo,
    .footer-links,
    .footer-social {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .use-cases {
        grid-template-columns: 1fr;
    }

    .product-features {
        grid-template-columns: 1fr;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
    }
}

/* 产品展示 - 新布局调整 */
.product-flex-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.app-preview {
    flex: 0 0 350px;
    max-width: 350px;
    margin: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.app-screen {
    height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow-y: auto;
}

/* 调整特性网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* 调整特性卡片样式使其更紧凑 */
.features-grid .feature-item {
    padding: 15px 10px;
    margin-bottom: 0;
}

.feature-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 调整介绍部分使其更紧凑 */
.app-intro {
    margin-bottom: 15px;
}

.app-intro h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.app-tagline {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.app-description {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 确保App Store链接位于底部 */
.app-links {
    margin-top: auto;
    padding-bottom: 0;
}

/* 聊天界面样式 */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.back-button, .chat-actions {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007aff;
    cursor: pointer;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h3 {
    font-size: 16px;
    margin: 0 0 2px 0;
}

.chat-info p {
    font-size: 12px;
    color: #4caf50;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f2f2f7;
}

.message-time {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 10px 0;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.received .message-bubble {
    background-color: white;
    color: #333;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.sent .message-bubble {
    background-color: #007aff;
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.send-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #007aff;
    color: white;
    border: none;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button i {
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-flex-container {
        flex-direction: column;
    }
    
    .app-preview {
        max-width: 100%;
        flex: 1;
        margin-bottom: 40px;
    }
    
    .app-features {
        width: 100%;
    }
}

/* 功能特点卡片样式 */
.feature-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
    margin-bottom: 20px;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .app-features .feature-item {
        margin-bottom: 20px;
    }
}

/* 产品特性网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 在移动设备上改为单列 */
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 调整特性卡片在网格中的样式 */
.features-grid .feature-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 0;
} 