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

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

/* 图片加载失败的样式 */
img[alt]:empty::before {
    content: attr(alt);
    display: block;
    color: var(--gray-medium);
    background-color: var(--gray-pale);
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--gray-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

section {
    width: 100%;
    overflow-x: hidden;
}

/* 全局样式 */
:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --pale-green: #E8F5E8;
    --white: #FFFFFF;
    --black: #000000;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #CCCCCC;
    --gray-pale: #F5F5F5;
    --shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
    --shadow-hover: 0 8px 30px rgba(76, 175, 80, 0.25);
    --gradient-green: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    --gradient-light: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

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

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

/* 主要内容 */
main {
    margin-top: 70px;
}

/* Hero 区域 */
.hero {
    background: var(--gradient-light);
    padding: 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: var(--shadow);
}

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

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

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

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

.app-preview {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 320px;
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    background: var(--white);
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.app-screenshot {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* 特性区域 */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-green);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--pale-green);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* 技术架构区域 */
.architecture {
    padding: 100px 0;
    background: var(--pale-green);
}

.architecture-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.architecture-diagram {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.agent-layer {
    margin-bottom: 40px;
}

.agent-layer h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 20px;
    text-align: center;
}

.agents-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.agent-box {
    background: var(--gradient-green);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 160px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.agent-box:hover {
    transform: scale(1.05);
}

.agent-box.user-interface {
    background: linear-gradient(135deg, #FF7043 0%, #D84315 100%);
    max-width: 300px;
    margin: 0 auto;
}

.agent-box.question-analyzer {
    background: linear-gradient(135deg, #42A5F5 0%, #1976D2 100%);
}

.agent-box.knowledge-retriever {
    background: linear-gradient(135deg, #AB47BC 0%, #7B1FA2 100%);
}

.agent-box.context-manager {
    background: linear-gradient(135deg, #FFCA28 0%, #F57F17 100%);
    color: var(--gray-dark);
}

.agent-box.web-crawler {
    background: linear-gradient(135deg, #26C6DA 0%, #00838F 100%);
}

.agent-box.paipan-processor {
    background: linear-gradient(135deg, #66BB6A 0%, #2E7D32 100%);
}

.agent-box.content-synthesizer {
    background: linear-gradient(135deg, #EF5350 0%, #C62828 100%);
}

.agent-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.agent-box p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.data-flow {
    text-align: center;
    margin: 20px 0;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-green);
}

.flow-text {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin: 5px 0;
}

.architecture-benefits {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.architecture-benefits h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.architecture-benefits ul {
    list-style: none;
}

.architecture-benefits li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
    color: var(--gray-dark);
    line-height: 1.6;
}

.architecture-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.architecture-benefits strong {
    color: var(--dark-green);
}

/* 功能截图展示区域 */
.feature-screenshots {
    margin-top: 80px;
}

.feature-screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.feature-screenshot-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-screenshot-item.reverse .screenshot-preview {
    order: 2;
}

.feature-screenshot-item.reverse .screenshot-desc {
    order: 1;
}

.screenshot-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img {
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: scale(1.05);
}

.screenshot-desc h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 16px;
}

.screenshot-desc p {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 产品演示区域 */
.screenshots {
    padding: 100px 0;
    background: var(--pale-green);
}

.demo-content {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-intro {
    text-align: center;
    margin-bottom: 60px;
}

.demo-intro h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 16px;
}

.demo-intro p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

.demo-screenshots {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.demo-step {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 40px;
    background: var(--gradient-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: flex-start;
}

.demo-img-container {
    max-width: 180px;
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--white);
    margin: 0 auto;
}

.demo-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.demo-img:hover {
    transform: scale(1.02);
}

.step-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 16px;
}

.step-info p {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 技术亮点区域 */
.highlights {
    padding: 100px 0;
    background: var(--gradient-light);
}

.highlights-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    background: var(--pale-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 12px;
}

.highlight-text p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* 联系我们区域 */
.contact {
    padding: 100px 0;
    background: var(--white);
}

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

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
}

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

.contact-form {
    background: var(--pale-green);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 30px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form input,
.form textarea {
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

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

.form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--light-green);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-green);
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 12px;
}

.link-group a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--light-green);
}

.footer-bottom {
    border-top: 1px solid rgba(129, 199, 132, 0.3);
    padding-top: 20px;
    text-align: center;
    color: var(--light-green);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .architecture-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .agents-row {
        flex-direction: column;
        align-items: center;
    }
    
    .agent-box {
        max-width: 250px;
    }
    
    .feature-screenshot-item,
    .feature-screenshot-item.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .feature-screenshot-item.reverse .screenshot-preview,
    .feature-screenshot-item.reverse .screenshot-desc {
        order: initial;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .demo-img-container {
        max-width: 150px;
    }
    
    .demo-img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 30px;
    }
    
    .app-preview {
        transform: none;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .app-preview:hover {
        transform: scale(1.02);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-screenshots {
        margin-top: 40px;
    }
    
    .feature-screenshot-item {
        margin-bottom: 40px;
        padding: 25px;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .demo-img-container {
        max-width: 120px;
    }
    
    .demo-img {
        max-width: 120px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        gap: 30px;
    }
    
    .hero-text {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
        width: auto;
        min-width: 160px;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 100%;
    }
    
    .app-preview {
        max-width: 250px;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .architecture,
    .screenshots,
    .highlights {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .feature-card,
    .architecture-diagram,
    .architecture-benefits {
        padding: 25px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .feature-screenshots {
        margin-top: 40px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .feature-screenshot-item {
        padding: 20px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .demo-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .demo-step {
        padding: 25px 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .step-content {
        gap: 20px;
    }
    
    .demo-img-container {
        max-width: 100px;
    }
    
    .demo-img {
        max-width: 100px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.screenshot-item,
.highlight-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动动画 */
@media (prefers-reduced-motion: no-preference) {
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
}