:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
}

html, body {
    font-family: "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.hero-section {
    min-height: 480px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #6610f2 100%);
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

/* 滚动成功案例 */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 在线客服 */
#chat-widget {
    max-width: 360px;
}

#chat-toggle {
    width: 56px;
    height: 56px;
}

#chat-panel {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

#chat-messages .msg {
    margin-bottom: 0.75rem;
    max-width: 80%;
}

#chat-messages .msg.user {
    margin-left: auto;
    text-align: right;
}

#chat-messages .msg.admin {
    margin-right: auto;
    text-align: left;
}

#chat-messages .msg .bubble {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

#chat-messages .msg.user .bubble {
    background-color: var(--primary);
    color: white;
}

#chat-messages .msg.admin .bubble {
    background-color: #e9ecef;
    color: #212529;
}

/* 后台 */
.sidebar-link {
    color: rgba(255, 255, 255, 0.75);
}

.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
}
