/* style.css */
:root {
    --primary-color: rgb(255, 157, 0);
    --primary-hover: rgb(235, 137, 0);
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.lang-switch button {
    background: none;
    border: 1px solid var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.lang-switch button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主页横幅 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

/* 粒子画布样式 */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 确保内容在画布上方 */
.hero-content {
    position: relative;
    z-index: 2;
}

/* 为动画添加淡入效果 */
.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 157, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品服务 */
.products {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 157, 0, 0.05) 0%,
            rgba(255, 157, 0, 0.02) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(255, 157, 0, 0.1);
    border-color: rgba(255, 157, 0, 0.2);
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.product-icon {
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-icon {
    transform: translateY(-8px) rotate(5deg) scale(1.1);
}

.product-icon svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(255, 157, 0, 0.2));
}

.product-card:hover .product-icon svg {
    filter: drop-shadow(0 8px 16px rgba(255, 157, 0, 0.3));
}

.product-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.product-card p {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.product-card:hover p {
    color: var(--text-dark);
    transform: translateY(-1px);
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: inline-block;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transition: width 0.3s ease;
}

.product-card:hover .product-link {
    transform: translateX(5px);
    color: var(--primary-hover);
}

.product-card:hover .product-link::after {
    width: calc(100% - 20px);
    /* 为箭头留出空间 */
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.product-link:hover {
    color: var(--primary-hover);
}

.product-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* 添加进入视口动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为移动端优化动画 */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.1),
            0 8px 16px rgba(255, 157, 0, 0.08);
    }

    .product-card:hover .product-icon {
        transform: translateY(-4px) scale(1.05);
    }

    /* 在移动设备上减少光泽效果以提高性能 */
    .product-card::after {
        display: none;
    }
}

/* 添加聚焦状态以提高可访问性 */
.product-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat p {
    font-size: 16px;
    color: var(--text-dark);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 18px;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {

    /* 移动端减少粒子数量以优化性能 */
    #particle-canvas {
        opacity: 0.7;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        justify-content: space-between;
    }
}

/* 备案号样式 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.beian-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.beian-link:hover {
    color: var(--primary-color);
}

/* 社交链接二维码提示框样式 */
.social-link-item {
    position: relative;
    display: inline-block;
}

.qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 140px;
    text-align: center;
    margin-bottom: 12px;
}

.qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.social-link-item:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.qr-tooltip img {
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}

.placeholder-qr {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #999;
}

.qr-tooltip span {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

/* 点击效果 */
.social-link-item.active .qr-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .qr-tooltip {
        bottom: auto;
        top: 100%;
        margin-top: 12px;
        margin-bottom: 0;
    }
    
    .qr-tooltip::after {
        top: -8px;
        border-top-color: transparent;
        border-bottom-color: white;
    }
    
    .social-link-item:hover .qr-tooltip {
        transform: translateX(-50%) translateY(8px);
    }
    
    .social-link-item.active .qr-tooltip {
        transform: translateX(-50%) translateY(8px);
    }
}