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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

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

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

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

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

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

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-image {
    position: relative;
}

.preview-stack {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.preview-image-main {
    width: 90%;
    max-width: 300px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.preview-image-small {
    width: 80%;
    max-width: 280px;
    border-radius: 16px;
    position: absolute;
    bottom: -20px;
    right: -140px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.preview-stack:hover .preview-image-main {
    transform: translateY(-3px);
}

.preview-stack:hover .preview-image-small {
    transform: translateY(-8px);
}

/* 功能概览样式 */
.features-overview {
    padding: 80px 0;
    background: white;
}

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

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    position: relative;
}

/* 科学猫孕管理图标 - 心形 */
.feature-icon.icon-breeding::before {
    content: '';
    width: 20px;
    height: 18px;
    background: white;
    border-radius: 10px 10px 0 0;
    transform: rotate(45deg);
    position: relative;
}

.feature-icon.icon-breeding::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 18px;
    background: white;
    border-radius: 10px 10px 0 0;
    transform: rotate(-45deg);
    top: 21px;
    left: 28px;
}

/* 完整猫咪档案图标 - 文档 */
.feature-icon.icon-archive::before {
    content: '';
    width: 24px;
    height: 30px;
    background: white;
    border-radius: 3px;
    position: relative;
}

.feature-icon.icon-archive::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #667eea;
    top: 26px;
    left: 22px;
    border-radius: 1px;
    box-shadow: 0 4px 0 #667eea, 0 8px 0 #667eea, 0 12px 0 #667eea;
}

/* 专业展示端图标 - 手机 */
.feature-icon.icon-display::before {
    content: '';
    width: 20px;
    height: 32px;
    background: white;
    border-radius: 4px;
    position: relative;
}

.feature-icon.icon-display::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 20px;
    background: #667eea;
    border-radius: 2px;
    top: 21px;
    left: 23px;
}

/* AI智能助理图标 - 机器人 */
.feature-icon.icon-ai::before {
    content: '';
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 6px;
    position: relative;
}

.feature-icon.icon-ai::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    top: 24px;
    left: 21px;
    box-shadow: 12px 0 0 #667eea, 6px 8px 0 #667eea;
}

.feature-card .feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.feature-card .feature-description {
    color: #666;
    line-height: 1.6;
}

/* 详细功能样式 */
.features-detail {
    padding: 80px 0;
    background: #f8fafc;
}

.feature-section {
    margin-bottom: 80px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

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

.feature-section.reverse .feature-content {
    direction: rtl;
}

.feature-section.reverse .feature-info {
    direction: ltr;
}

.features-detail .feature-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.features-detail .feature-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.feature-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-image {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    border-radius: 12px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

/* 下载区域样式 */
.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.download-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.7;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.check-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.download-qr {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: white;
    padding: 12px;
    margin-bottom: 16px;
}

.qr-text {
    font-size: 16px;
    opacity: 0.9;
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-details p {
    color: #666;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 600;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: #ccc;
    font-size: 14px;
    margin: 4px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .preview-image-small {
        bottom: -25px;
        right: -35px;
        width: 80%;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-section.reverse .feature-content {
        direction: ltr;
    }
    
    .feature-images {
        justify-content: center;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-detail .feature-title {
        font-size: 24px;
    }
    
    .download-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .contact-item {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

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

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

/* 平滑滚动 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
} 