/* 云杉科技首页 - 优化版 */
:root {
    --primary-dark: #000000;
    --primary-light: #f5f5f7;
    --primary-gray: #1d1d1f;
    --text-light: #f5f5f7;
    --text-gray: #86868b;
    --accent-blue: #0071e3;
    --accent-green: #00c853;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0f172a 0%, #131c2f 100%);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* 水印背景 - 模糊/清晰动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bgimage/watermark.jpg') center/cover no-repeat;
    opacity: 0.35;
    z-index: 0;
    animation: backgroundBlurCycle 15s ease-in-out infinite;
    will-change: filter, opacity;
    filter: blur(0px);
}

/* 网格背景效果 - 已取消线框 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* 取消网格线框 */
    opacity: 0;
    z-index: 0;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* 内容区域 */
.content {
    max-width: 1000px;
    text-align: center;
    padding: 8rem 2rem 4rem;
}



/* 公司名称 */
.company-title {
    font-size: clamp(3.8rem, 8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    transition: opacity 0.8s ease;
}



/* 英文名称 */
.company-subtitle {
    font-size: clamp(1.8rem, 3.5vw, 1.6rem);
    color: var(--text-gray);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
    line-height: 1.5;
    transition: opacity 0.8s ease;
}

/* 行动按钮区域 */
.cta-section {
    margin-top: 12rem;
    transition: opacity 0.8s ease;
}

.cta-btn {
    padding: 1.2rem 3rem;
    border-radius: 35px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
    justify-content: center;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.cta-btn.primary {
    background: var(--accent-blue);
    color: white;
    border: none;
}

.cta-btn.primary:hover,
.cta-btn.primary:focus {
    background: #0077ED;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 113, 227, 0.3);
    outline: none;
}

.cta-btn.primary:active {
    transform: scale(0.95);
}

.cta-btn .btn-icon {
    width: 20px;
    height: 20px;
}

/* 页脚 */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    z-index: 3;
    transition: opacity 0.8s ease;
}

.footer p:last-child {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* 动画 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes backgroundBlurCycle {
    0% {
        filter: blur(0px);
        opacity: 0.35;
    }

    25% {
        filter: blur(3px);
        opacity: 0.25;
    }

    50% {
        filter: blur(8px);
        opacity: 0.15;
    }

    75% {
        filter: blur(3px);
        opacity: 0.25;
    }

    100% {
        filter: blur(0px);
        opacity: 0.35;
    }
}

/* 响应式设计 */

/* 平板设备 (768px及以下) */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .content {
        padding: 2rem 1rem;
    }

    .company-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        letter-spacing: -0.005em;
        margin-bottom: 1rem;
    }

    .company-subtitle {
        font-size: clamp(1rem, 0.8rem + 2vw, 1.8rem);
        white-space: normal;
        line-height: 1.4;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .cta-section {
        margin-top: 3rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.8rem;
        font-size: 1.2rem;
    }
}

/* 手机设备 (480px及以下) */
@media (max-width: 480px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        position: relative;
    }

    .container {
        padding: 0.5rem;
        justify-content: center;
        padding-top: 0;
        flex: 1;
        display: flex;
        align-items: center;
        min-height: calc(100vh - 5rem);
    }

    .content {
        padding: 2rem 0.5rem;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .company-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        margin-bottom: 0.8rem;
        padding: 0 0.3rem;
    }

    .company-subtitle {
        font-size: clamp(0.8rem, 2.8vw, 1.2rem);
        line-height: 1.3;
        padding: 0 0.3rem;
        margin-bottom: 1.5rem;
    }

    .cta-section {
        margin-top: 2.5rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        max-width: 260px;
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
        min-width: auto;
    }

    .footer {
        position: relative;
        bottom: 0;
        margin-top: auto;
        padding: 1.2rem 0;
        font-size: 0.8rem;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        z-index: 10;
        flex-shrink: 0;
    }

    .footer p:last-child {
        font-size: 0.75rem;
    }
}

/* 超小屏幕 (320px及以下) */
@media (max-width: 320px) {
    .container {
        padding: 0.3rem;
        justify-content: center;
        flex: 1;
        min-height: calc(100vh - 4rem);
    }

    .content {
        padding: 1.5rem 0.2rem;
        width: 100%;
    }

    .company-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
        padding: 0 0.1rem;
        word-break: keep-all;
    }

    .company-subtitle {
        font-size: clamp(0.65rem, 2.5vw, 0.9rem);
        line-height: 1.3;
        margin-bottom: 0.8rem;
        padding: 0 0.1rem;
    }

    .company-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        padding: 0 0.1rem;
    }

    .cta-section {
        margin-top: 1.5rem;
    }

    .cta-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 28px;
        max-width: 220px;
    }

    .footer {
        margin-top: auto;
        padding: 0.8rem 0;
        font-size: 0.7rem;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .footer p:last-child {
        font-size: 0.65rem;
    }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* 提升移动端触摸体验 */
    .cta-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }

    /* 确保内容区域在小屏幕上完全可见 */
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        overflow: hidden;
    }

    .content {
        overflow: visible;
        position: relative;
        z-index: 2;
    }
}

/* iOS Safari 特定优化 */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
    }
}

/* 移动端键盘弹出优化 */
@media (max-height: 600px) {
    .container {
        min-height: 100vh;
        height: auto;
    }

    .content {
        min-height: auto;
        padding: 1.5rem 0.5rem;
    }
}

/* 设备方向调整 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .content {
        padding: 1rem;
        max-width: 90%;
    }

    .company-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .company-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .cta-section {
        margin-top: 1.5rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .cta-btn {
        padding: 1rem 2rem;
        min-height: 44px;
        /* 最小触摸目标尺寸 */
    }

    .cta-btn:active {
        transform: scale(0.95);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .company-title {
        color: #ffffff;
        text-shadow: 0 1px 0 #000000;
    }

    .company-subtitle {
        color: #cccccc;
    }
}