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

/* 根变量定义 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* 导航品牌（Logo + 文案） */
.nav-logo .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo .brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-logo .brand-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主页面样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin: 0.5rem 0;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

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

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 520px; /* 确保百分比定位有参考高度 */
}

.floating-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    color: white;
    margin: 1rem;
    animation: float 6s ease-in-out infinite;
    position: absolute;
    transform: rotate(-2deg);
    width: 240px; /* 固定宽度，避免横向挤压导致重叠 */
    pointer-events: none; /* 卡片不抢占鼠标以免误触 */
}

.floating-card:nth-child(2) {
    transform: rotate(-3deg);
}

.floating-card:nth-child(3) {
    transform: rotate(2deg);
}

.floating-card:nth-child(4) {
    transform: rotate(-2deg);
}

.floating-card:nth-child(1) {
    top: 8%;
    left: 6%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 22%;
    right: 8%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    top: 64%;
    left: 10%;
    animation-delay: 4s;
}

.floating-card:nth-child(4) {
    top: 82%;
    right: 6%;
    animation-delay: 6s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

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

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 产品特色样式 */
.features {
    padding: 6rem 0;
    background: var(--surface-color);
}

/* 四大核心引擎样式 */
.engines {
    padding: 6rem 0;
    background: white;
}

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

.engine-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.engine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.engine-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.engine-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.engine-icon i {
    font-size: 2rem;
    color: white;
}

.engine-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.engine-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.engine-content {
    padding: 2rem;
}

.engine-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    overflow: hidden;
    position: relative;
}

.engine-image-placeholder.has-image {
    border: 2px solid var(--primary-color);
    background: white;
}

.engine-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.engine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.engine-image:hover {
    transform: scale(1.05);
}

.engine-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item:hover i {
    background: white;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 500;
    line-height: 1.4;
}

/* 专家团队样式 */
.expert-team-section {
    margin-top: 4rem;
    padding: 4rem 0;
    background: var(--surface-color);
    border-radius: var(--border-radius);
}

.expert-team-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.expert-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.expert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.expert-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expert-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.expert-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: left;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* 硬件特点样式 */
.hardware-features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.applicable-scenarios {
    margin-top: 3rem;
    text-align: center;
}

.applicable-scenarios h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.scenarios-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.scenario-item {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.scenario-item:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.hardware-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.hardware-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.hardware-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.hardware-icon i {
    font-size: 1.75rem;
    color: white;
}

.hardware-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hardware-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 关于我们样式 */
.about {
    padding: 6rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}


.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 联系我们样式 */
.contact {
    padding: 6rem 0;
    background: var(--surface-color);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item h4 {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}


/* 页脚样式 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(260px, auto) minmax(220px, auto) minmax(220px, auto); /* 内容驱动列宽 */
    justify-content: center; /* 三列整体居中 */
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--text-light);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

.company-slogan {
    font-style: italic;
    color: #9ca3af !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 页脚横幅图片 */
.footer-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem;
}

.footer-banner img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 平板两列 */
    }

    .footer-section:first-child .social-links {
        justify-content: center;
    }
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-card {
        position: static;
        display: inline-block;
        margin: 0.5rem;
        width: calc(50% - 1rem);
        vertical-align: top;
    }

    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .engines-grid {
        grid-template-columns: 1fr;
    }

    .engine-card {
        margin-bottom: 1rem;
    }

    .engine-header {
        padding: 1.5rem;
    }

    .engine-content {
        padding: 1.5rem;
    }

    .experts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .expert-item {
        padding: 1.5rem 1rem;
    }

    .expert-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

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

    .hardware-card {
        padding: 2rem 1.5rem;
    }

    .scenarios-list {
        gap: 1rem;
    }

    .scenario-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr; /* 手机一列 */
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    .container {
        padding: 0 15px;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }

    .expert-avatar {
        width: 70px;
        height: 70px;
    }

    .expert-item {
        padding: 1rem;
    }

    .expert-item h4 {
        font-size: 1.1rem;
    }

    .expert-item p {
        font-size: 0.8rem;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hardware-card {
        padding: 1.5rem 1rem;
    }

    .scenarios-list {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .scenario-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

    .contact-item {
        padding: 0.8rem 0.5rem;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .contact-item h4 {
        font-size: 0.8rem;
    }

    .contact-item p {
        font-size: 0.7rem;
    }
}

/* 动画增强 */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .contact-item {
        animation: fadeInUp 0.6s ease-out;
    }

    .feature-card:nth-child(2) { animation-delay: 0.1s; }
    .feature-card:nth-child(3) { animation-delay: 0.2s; }
    .feature-card:nth-child(4) { animation-delay: 0.3s; }
    .feature-card:nth-child(5) { animation-delay: 0.4s; }
    .feature-card:nth-child(6) { animation-delay: 0.5s; }
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}