:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --dark-text: #1d1d1f;
    --light-text: #86868b;
    --bg-color: #fbfbfd;
    --card-bg: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* 移动端菜单按钮（桌面端隐藏） */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--dark-text);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-toggle-box {
    width: 22px;
    height: 16px;
    position: relative;
    display: block;
}

.nav-toggle-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 7px; }
.nav-toggle-bar:nth-child(3) { top: 14px; }

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.25);
    -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.is-visible {
    display: block;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

/* Hero 区域 - 炫技核心 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #fff 0%, #f0f2f5 100%);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    padding: 100px 24px 40px;
}

.hero-value-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-value-tag {
    display: inline-block;
    font-size: clamp(40px, 9vw, 88px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-value-tag--1 {
    background-image: linear-gradient(135deg, #007aff 0%, #5ac8fa 55%, #30d158 100%);
}

.hero-value-tag--2 {
    background-image: linear-gradient(135deg, #5856d6 0%, #af52de 45%, #ff375f 100%);
}

.hero-value-tag--3 {
    background-image: linear-gradient(135deg, #ff9500 0%, #ff6482 50%, #bf5af2 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards, bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--light-text);
}

/* 通用 Section */
section {
    padding: 80px 0px;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* 服务卡片 - Glassmorphism & Hover Effects */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 40px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    line-height: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    position: relative;
    flex: 1;
}

.service-card p {
    color: var(--light-text);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* 联系方式 */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.qr-wrapper {
    position: relative;
    padding: 10px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qr-wrapper:hover {
    transform: scale(1.05);
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: #f5f5f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-code-img,
.qr-code-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移动端：静态二维码图片；PC 端见下方 min-width 规则 */
.qr-code-video {
    display: none;
}

@media (min-width: 769px) {
    .qr-code {
        width: 240px;
        height: 240px;
    }

    .qr-code-img {
        display: none;
    }

    .qr-code-video {
        display: block;
    }
}

 

.contact-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

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

/* 页脚 */
footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 60px 0 40px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: #d2d2d7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* 网站导航 */
.site-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.nav-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(90, 200, 250, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item-icon {
    font-size: 48px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-item:hover .nav-item-icon {
    transform: scale(1.15) rotate(5deg);
}

.nav-item-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
    position: relative;
    z-index: 2;
}

.nav-item-desc {
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 服务客户 */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.client-card-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.client-logo-wrap {
    flex: 0 0 auto;
    width: auto;
    min-height: 72px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-logo {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-product-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-text);
    text-align: left;
    margin: 0;
    line-height: 1.45;
}

.client-product-service {
    font-size: 13px;
    font-weight: 500;
    color: var(--light-text);
}

/* 动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .navbar {
        height: calc(56px + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
    }

    .nav-container {
        padding: 0 16px;
        height: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text {
        display: none;
    }

    /* 移动端：固定下拉面板，避免撑开页面布局 */
    .nav-links {
        position: fixed;
        z-index: 1001;
        left: 0;
        right: 0;
        top: calc(56px + env(safe-area-inset-top, 0px));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 16px 16px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 14px 12px;
        border-radius: 12px;
        font-size: 17px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:active {
        background: rgba(0, 122, 255, 0.08);
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding: 88px 16px 36px;
    }

    .hero-value-tags {
        flex-direction: column;
    
    }

    .hero-value-tag {
        font-size: clamp(36px, 11vw, 56px);
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .site-nav-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: none;
        padding: 0 2px;
    }

    .nav-item {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .nav-item:active {
        transform: scale(0.98);
    }

    .nav-item-icon {
        font-size: 40px;
    }

    .nav-item-title {
        font-size: 19px;
    }

    .nav-item-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .client-card {
        padding: 22px 18px;
    }

    .client-card-head {
        gap: 12px;
    }

    .client-logo-wrap {
        min-height: 64px;
        min-width: 80px;
        padding: 10px 12px;
    }

    .client-logo {
        max-height: 48px;
    }

    .client-product-name {
        font-size: 16px;
    }

    .client-product-service {
        font-size: 12px;
    }

    section {
        padding: 56px 0;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

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