/* ==========================================
   深圳市迈智科技有限公司 - 自定义样式
   ========================================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --dark-bg: #0f172a;
}

/* 全局样式 */
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-image {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

/* 数据区块 */
.stat-item {
    padding: 1.5rem 1rem;
}

.counter {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 服务卡片 */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 关于我们 */
#about img {
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.02);
}

/* 联系卡片 */
#contact .card {
    border-radius: 1rem;
}

/* 页面头部（隐私/协议页） */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    margin-top: -76px;
    padding-top: 100px !important;
}

/* 法律文档内容 */
.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #334155;
}

.legal-content p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: #475569;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background: var(--dark-bg) !important;
}

footer h5, footer h6 {
    color: #fff;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 76px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 60px;
        text-align: center;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
