/* 基础变量 */
:root {
    --primary-color: #3b82f6; /* 科技蓝，更适合企业应用 */
    --primary-dark: #2563eb;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --section-bg: #f8fafc; /* 非常浅的灰蓝背景，显专业 */
    --border-color: #e2e8f0;
}

/* 全局重置与基础样式 */
* {
    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-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 辅助类 */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.section-bg { background-color: var(--section-bg); }

/* 导航栏 */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
}

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

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* 微信二维码悬浮弹窗 */
.apply-btn-wrapper {
    position: relative;
    display: inline-block;
}

.qr-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10;
    text-align: center;
    min-width: 150px;
}

.qr-popup.popup-top {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 10px;
}

.qr-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.qr-popup.popup-top::before {
    top: auto;
    bottom: -8px;
    border-width: 8px 8px 0 8px;
    border-color: white transparent transparent transparent;
}

.qr-popup img {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
}

.qr-popup p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.apply-btn-wrapper:hover .qr-popup {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 首页 Hero 区域 */
.hero {
    padding: 80px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a202c;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.dashboard-preview {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 三列网格 */
.benefits {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a202c;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 功能概览图文对半 */
.features-overview {
    padding: 80px 0;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-text {
    flex: 1;
}

.split-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.split-text ul {
    margin-bottom: 30px;
}

.split-text li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.split-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.split-text strong {
    color: var(--text-color);
}

.split-image {
    flex: 1;
}

.split-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 核心功能页表头 */
.page-header {
    background-color: var(--section-bg);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a202c;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 核心功能详情网格 */
.feature-detail {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-large-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 页脚 */
footer {
    background-color: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2d3748;
}

.footer-info h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-contact {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #cbd5e0;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-container, .split-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .split-text li {
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
