/* 基础变量定义 */
:root {
    --bg: #fafafa;
    --text: #2a2a2a;
    --text-light: #666;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --primary: #1c94ff;
    --primary-light: #4a72d9;
    --secondary: #2d4ca3;
    --accent: #f5f7ff;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-strong: rgba(0, 0, 0, 0.1);
    /* 液体渐变颜色 - 修改为青蓝色系 */
    --liquid-1: #2efaec;
    --liquid-2: #5baaff;
    --liquid-3: #bbf3ff;
    --liquid-4: #374bff;
    --section-bg-light: #ffffff;
    --section-bg-light-dark: #2a2a2a; /* 暗色模式下的对应色值 */
}
[data-theme="dark"] {
    --bg: #1a1a1a;
    --text: #f0f0f0;
    --text-light: #b0b0b0;
    --card-bg: #242424;
    --border: #333;
    --primary: #4a72d9;
    --primary-light: #5a81e9;
    --secondary: #3a63c9;
    --accent: #2d3748;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(0, 0, 0, 0.3);
    /* 深色模式液体渐变 - 青蓝色系 */
    --liquid-1: #1a5276;
    --liquid-2: #154360;
    --liquid-3: #1a5276;
    --liquid-4: #2980b9;
}
[data-theme="dark"] .section-bg-w {
    background-color: var(--section-bg-light-dark);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--secondary);
    text-decoration: none;
}
.text-light {
    color: var(--text-light) !important;
}

/* 布局容器 */
.container-lg {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 导航栏 */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.85);
}
.navbar-brand-img-1 {
    height: 38px;
    transition: transform 0.2s ease;
}
.navbar-brand-img-2 {
    height: 20px;
    transition: transform 0.2s ease;
}
.nav-link {
    color: var(--text) !important;
    margin: 0 1rem;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}
.nav-link-active::after {
    width: 100%;
}
.nav-link:hover::after {
    width: 100%;
}

/* 暗色模式按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 登录按钮样式优化 */
.login-btn {
    background-color: var(--primary);
    color: white !important;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(58, 99, 201, 0.2);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}
.login-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 99, 201, 0.25);
}
.login-btn i {
    margin-right: 0.3rem;
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--card-bg);
}
.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}
.footer-logo-2 {
    height: 40px;
    margin-bottom: 1.5rem;
}
.footer-about p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}
.footer-contact {
    font-size: 0.95rem;
}
.footer-contact h5 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.footer-contact div {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.footer-contact i {
    color: var(--primary);
}
.footer-ci {
    margin-right: 0.8rem;
}

/* 修复社交媒体图标居中 */
.footer-qr {
    text-align: center;
}
.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: white;
    padding: 6px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 0.8rem;
}
.footer-social {
    display: flex;
    margin-top: 1.5rem;
    padding-left: 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
}
.footer-links h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}
.copyright {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}
.copyright a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
.copyright a:hover {
    color: var(--primary);
}

/* 返回顶部和联系我们按钮样式 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top, .contact-us {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(58, 99, 201, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.back-to-top:hover, .contact-us:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(58, 99, 201, 0.4);
}
.contact-us:hover {
    background-color: var(--primary);
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes breathe {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

/* 滚动显示动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 解决方案页面专属样式 */
.solution-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
    padding: 0 20px;
    max-width: 1440px;
    margin: 80px auto 0;
    position: relative;
}

/* 左侧选项卡样式 - 使用 sticky 实现容器内浮动 */
.solution-sidebar {
    width: 240px;
    margin: 60px 0 40px;
    position: sticky;
    top: 90px;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: transform 0.2s ease;
    align-self: start;
}

/* 主内容区 - 限定1200px宽度 */
.solution-main {
    flex: 1;
    max-width: 1200px;
    margin-left: 40px;
    padding: 0 10px;
}

/* 标题样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 60px 0 30px;
    color: var(--text);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
}

/* 行业痛点卡片 - 5px圆角 */
.industry-pain-section {
    margin: 60px 0 60px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.pain-header {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.pain-item {
    padding: 30px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pain-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.pain-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 20px;
}

.pain-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.pain-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.solution-highlight {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 15px;
}

/* 解决方案卡片 */
.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.solution-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    padding: 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
}

.feature-title i {
    margin-right: 10px;
    color: var(--primary);
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-benefit {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

/* 暗色模式适配 */
[data-theme="dark"] .solution-sidebar {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .industry-pain-section,
[data-theme="dark"] .solution-card {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .solution-sidebar {
        width: 220px;
        padding: 30px 15px;
    }
    .solution-main {
        margin-left: 30px;
    }
}

@media (max-width: 1200px) {
    .solution-sidebar {
        width: 200px;
        top: 80px;
    }
    .solution-main {
        margin-left: 30px;
    }
}

@media (max-width: 992px) {
    .solution-container {
        flex-direction: column;
    }
    .solution-sidebar {
        position: static;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    }
    .sidebar-title {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    .sidebar-tab {
        flex: 1;
        min-width: 140px;
        margin: 5px;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }
    .solution-main {
        margin-left: 0;
        max-width: 100%;
    }
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin: 40px 0 25px;
    }
    .pain-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .industry-pain-section,
    .solution-card {
        padding: 30px 20px;
    }
}

/* 动画效果 */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 1px;
    text-align: center;
}

.sidebar-tab {
    display: block;
    padding: 16px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border-left: 3px solid transparent;
    margin-bottom: 8px;
    font-weight: 500;
    border-radius: 5px;
}

.sidebar-tab:hover {
    color: var(--primary);
    background: var(--accent);
    transform: translateX(3px);
}

.sidebar-tab.active {
    color: var(--primary);
    background: var(--accent);
    border-left: 3px solid var(--primary);
    font-weight: 600;
    transform: translateX(3px);
}