/* ========================================
   赛彼思企业官网 - 主样式文件
   风格：简约商务
   主色调：科技蓝 #1E5BFF（可根据LOGO调整）
======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #1E5BFF;
    --primary-dark: #0D47A1;
    --primary-light: #5C8DFF;
    --secondary-color: #00C4CC;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* ========================================
   顶部导航栏
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

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

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

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Banner轮播
======================================== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 900px;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.banner-title-nowrap {
    font-size: 44px;
    white-space: nowrap;
}

.banner-content p {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Banner导航点 */
.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover,
.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Banner箭头 */
.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.arrow {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   通用板块样式
======================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

.section-subtitle {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   企业简介
======================================== */
.company-intro {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.intro-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
}

.intro-text .intro-highlight {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.8;
}

.intro-text strong {
    color: var(--primary-color);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   核心优势
======================================== */
.core-advantages {
    padding: 100px 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.advantage-card {
    flex: unset;
    max-width: unset;
}

.advantage-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

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

.advantage-icon i {
    font-size: 28px;
    color: #fff;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   产品中心
======================================== */
.products {
    padding: 100px 0;
    background: var(--bg-white);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.product-icon i {
    font-size: 26px;
    color: #fff;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.product-tags span {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
}

/* ========================================
   关于我们
======================================== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.9;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 团队风采 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar i {
    font-size: 40px;
    color: #fff;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.team-position {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    width: 100%;
}

.contact-info-left,
.contact-info-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-divider {
    width: 1px;
    background: var(--border-color);
    align-self: stretch;
    margin: 20px 0;
}

.contact-form-section {
    padding: 20px 0;
}

.contact-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .required {
    color: #e74c3c;
}

.contact-form input,
.contact-form select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.contact-form button {
    margin-top: 10px;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: #fff;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-qrcode {
    display: flex;
    justify-content: center;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.qrcode-placeholder i {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.qrcode-placeholder p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========================================
   企业资质
======================================== */
.qualifications {
    background: var(--bg-light);
    padding: 80px 0;
}

.qualifications-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.qualifications-images img {
    max-width: 100%;
    height: 280px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.qualifications-images img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   专利展示
======================================== */
.patents {
    background: var(--bg-white);
    padding: 80px 0;
}

.patents-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.patents-images img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.patents-images img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   页脚
======================================== */
.footer {
    background: #1A1A2E;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo .logo-img {
    height: 50px;
    margin-bottom: 15px;
    background: #fff;
    padding: 3px 5px;
    border-radius: 4px;
    display: inline-block;
}

.footer-logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

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

/* ========================================
   返回顶部
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(30, 91, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 18px;
    color: #fff;
}

/* ========================================
   响应式设计
======================================== */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .banner-content h1 {
        font-size: 40px;
    }

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

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

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

    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-stats {
        justify-content: center;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* 移动端设备 */
@media (max-width: 768px) {
    /* 导航栏 */
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    /* Banner */
    .banner-slider {
        height: 70vh;
        min-height: 500px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-title-nowrap {
        font-size: 24px;
        white-space: normal;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-arrows {
        padding: 0 15px;
    }

    .arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* 通用 */
    .section-title h2 {
        font-size: 28px;
    }

    .company-intro,
    .core-advantages,
    .products,
    .about,
    .contact {
        padding: 60px 0;
    }

    /* 企业简介 */
    .intro-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* 核心优势 */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 30px 25px;
    }

    /* 产品 */
    .products-grid {
        flex-direction: column;
    }

    .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 团队 */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* 联系我们 */
    .contact-content.contact-info {
        grid-template-columns: 1fr;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* 返回顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }
}

/* 移动端菜单动画 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}