/* ============================================
   SmartPLS 中文官网 - 公共样式
   主题色: #383838 #047AF0 #155E75
   ============================================ */

/* CSS 变量 */
:root {
    --color-dark: #383838;
    --color-blue: #047AF0;
    --color-teal: #155E75;
    --color-white: #FFFFFF;
    --color-light-bg: #F8FAFC;
    --color-light-gray: #F1F5F9;
    --color-border: #E2E8F0;
    --color-text: #334155;
    --color-text-light: #64748B;
    --color-text-dark: #1E293B;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-teal);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    line-height: 1.4;
    font-weight: 700;
}

/* 容器 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(4, 122, 240, 0.3);
}

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 122, 240, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    color: var(--color-blue);
    border-color: var(--color-blue);
    background: rgba(4, 122, 240, 0.04);
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区域间距 */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--color-light-bg);
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 选择文本颜色 */
::selection {
    background: var(--color-blue);
    color: var(--color-white);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 0;
    }

    body {
        font-size: 14px;
    }
}
