/* ============================================================
   深圳市迈智科技有限公司 - 内部应用与服务平台
   公共样式表
   ============================================================ */

:root {
    --mz-primary: #0b3d91;
    --mz-primary-dark: #082a66;
    --mz-accent: #00c2ff;
    --mz-accent-soft: rgba(0, 194, 255, .12);
    --mz-bg: #f5f7fb;
    --mz-card-border: #e6ebf3;
    --mz-text-main: #1f2d3d;
    --mz-text-muted: #6b7a90;
    --mz-footer-bg: #0b1f3a;
    --mz-radius: 14px;
    --mz-shadow: 0 8px 24px rgba(11, 61, 145, .08);
    --mz-shadow-hover: 0 14px 34px rgba(11, 61, 145, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--mz-bg);
    color: var(--mz-text-main);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    padding-top: 72px;
}

/* ---------- 顶部导航 ---------- */
.mz-navbar {
    height: 72px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(11, 61, 145, .06);
    transition: box-shadow .3s ease;
}

.mz-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(11, 61, 145, .14);
}

.mz-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--mz-primary) !important;
    letter-spacing: .5px;
}

.mz-brand .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--mz-primary), var(--mz-accent));
    box-shadow: 0 4px 10px rgba(0, 194, 255, .35);
}

.mz-navbar .nav-link {
    color: var(--mz-text-main);
    font-weight: 500;
    margin: 0 6px;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all .25s ease;
}

.mz-navbar .nav-link:hover {
    color: var(--mz-primary);
    background: var(--mz-accent-soft);
}

.mz-navbar .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mz-primary), #1565d8);
}

/* ---------- Hero 区域 ---------- */
.mz-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 42, 102, .94) 30%, rgba(11, 61, 145, .72) 65%, rgba(0, 194, 255, .45)),
        url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=modern%20corporate%20data%20center%20technology%20background%20dark%20blue%20glowing%20network%20lines%20digital%20workspace%20clean%20professional&image_size=landscape_16_9") center/cover no-repeat;
    overflow: hidden;
}

.mz-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.mz-hero .container {
    position: relative;
    z-index: 1;
}

.mz-hero h1 {
    font-weight: 700;
    letter-spacing: 1px;
}

.mz-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
}

.mz-hero-search {
    max-width: 560px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.mz-hero-search .form-control {
    border: 0;
    padding: 14px 22px;
}

.mz-hero-search .form-control:focus {
    box-shadow: none;
}

.mz-hero-search .btn {
    padding: 0 28px;
    border: 0;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--mz-primary-dark);
    background: linear-gradient(135deg, #8fe3ff, var(--mz-accent));
}

/* ---------- 统计条 ---------- */
.mz-stats {
    margin-top: -56px;
    position: relative;
    z-index: 2;
}

.mz-stats .stat-card {
    background: #fff;
    border-radius: var(--mz-radius);
    box-shadow: var(--mz-shadow);
    padding: 22px 18px;
    text-align: center;
    height: 100%;
}

.mz-stats .stat-num {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--mz-primary);
}

.mz-stats .stat-label {
    color: var(--mz-text-muted);
    font-size: .9rem;
}

/* ---------- 区块标题 ---------- */
.mz-section {
    padding: 72px 0;
}

.mz-section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 12px;
}

.mz-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mz-primary), var(--mz-accent));
}

.mz-section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.mz-section-sub {
    color: var(--mz-text-muted);
    margin-bottom: 40px;
}

/* ---------- 应用卡片 ---------- */
.mz-app-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--mz-card-border);
    border-radius: var(--mz-radius);
    padding: 22px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mz-app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mz-shadow-hover);
    border-color: rgba(0, 194, 255, .5);
    color: inherit;
}

.mz-app-card .app-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--mz-primary), var(--mz-accent));
}

.mz-app-card .app-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.mz-app-card .app-desc {
    font-size: .86rem;
    color: var(--mz-text-muted);
    margin: 0;
}

.mz-app-card .app-tag {
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--mz-primary);
    background: var(--mz-accent-soft);
}

/* ---------- 服务卡片 ---------- */
.mz-service-card {
    background: #fff;
    border: 1px solid var(--mz-card-border);
    border-radius: var(--mz-radius);
    padding: 30px 24px;
    height: 100%;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.mz-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mz-shadow-hover);
}

.mz-service-card .svc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--mz-primary);
    background: var(--mz-accent-soft);
    transition: all .3s ease;
}

.mz-service-card:hover .svc-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--mz-primary), var(--mz-accent));
}

/* ---------- 公告列表 ---------- */
.mz-notice-card {
    background: #fff;
    border-radius: var(--mz-radius);
    box-shadow: var(--mz-shadow);
    overflow: hidden;
}

.mz-notice-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--mz-card-border);
    transition: background .2s ease;
}

.mz-notice-item:last-child {
    border-bottom: 0;
}

.mz-notice-item:hover {
    background: #f2f7ff;
    color: var(--mz-primary);
}

.mz-notice-item .notice-badge {
    flex: 0 0 auto;
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 6px;
}

.mz-notice-item .notice-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mz-notice-item .notice-date {
    color: var(--mz-text-muted);
    font-size: .82rem;
}

/* ---------- 页面小 Hero（子页） ---------- */
.mz-page-hero {
    color: #fff;
    padding: 64px 0 56px;
    background: linear-gradient(115deg, var(--mz-primary-dark), var(--mz-primary) 60%, #0e63c9);
    position: relative;
    overflow: hidden;
}

.mz-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 22px 22px;
}

.mz-page-hero .container {
    position: relative;
    z-index: 1;
}

.mz-page-hero .breadcrumb {
    margin-bottom: 8px;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .55);
}

.mz-page-hero .breadcrumb a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.mz-page-hero .breadcrumb .active {
    color: #fff;
}

/* ---------- 分类筛选按钮 ---------- */
.mz-filter-btn {
    border: 1px solid var(--mz-card-border);
    background: #fff;
    color: var(--mz-text-main);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: .9rem;
    transition: all .25s ease;
}

.mz-filter-btn:hover {
    border-color: var(--mz-accent);
    color: var(--mz-primary);
}

.mz-filter-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--mz-primary), #1565d8);
    box-shadow: 0 4px 12px rgba(11, 61, 145, .25);
}

/* ---------- 流程步骤 ---------- */
.mz-step {
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.mz-step .step-num {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--mz-primary), var(--mz-accent));
    box-shadow: 0 6px 16px rgba(0, 194, 255, .35);
    position: relative;
    z-index: 1;
}

.mz-step::before {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(-50% + 26px);
    width: calc(100% - 52px);
    border-top: 2px dashed #c4d6f2;
}

.mz-step:first-child::before {
    display: none;
}

/* ---------- 时间线 ---------- */
.mz-timeline {
    position: relative;
    padding-left: 28px;
}

.mz-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--mz-primary), var(--mz-accent));
    border-radius: 2px;
}

.mz-timeline .tl-item {
    position: relative;
    padding-bottom: 26px;
}

.mz-timeline .tl-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--mz-accent);
}

.mz-timeline .tl-year {
    font-weight: 700;
    color: var(--mz-primary);
}

/* ---------- FAQ ---------- */
.mz-faq .accordion-item {
    border: 1px solid var(--mz-card-border);
    border-radius: var(--mz-radius) !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.mz-faq .accordion-button {
    font-weight: 600;
    background: #fff;
}

.mz-faq .accordion-button:not(.collapsed) {
    color: var(--mz-primary);
    background: var(--mz-accent-soft);
    box-shadow: none;
}

.mz-faq .accordion-button:focus {
    box-shadow: none;
    border: 0;
}

/* ---------- 页脚（含备案信息） ---------- */
.mz-footer {
    background: var(--mz-footer-bg);
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 0;
}

.mz-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
}

.mz-footer a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: color .2s ease;
}

.mz-footer a:hover {
    color: var(--mz-accent);
}

.mz-footer .footer-links li {
    margin-bottom: 10px;
}

.mz-beian {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 40px;
    padding: 20px 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.mz-beian a {
    color: rgba(255, 255, 255, .65);
}

.mz-beian a:hover {
    color: var(--mz-accent);
}

.mz-beian .beian-sep {
    margin: 0 10px;
    opacity: .4;
}

.mz-beian img {
    vertical-align: -3px;
    margin-right: 4px;
}

/* ---------- 返回顶部 ---------- */
.mz-backtop {
    position: fixed;
    right: 26px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--mz-primary), var(--mz-accent));
    box-shadow: 0 8px 20px rgba(11, 61, 145, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    z-index: 1030;
}

.mz-backtop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- 自定义 Toast ---------- */
.mz-toast-wrap {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mz-toast {
    min-width: 260px;
    max-width: 340px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 61, 145, .18);
    border-left: 4px solid var(--mz-accent);
    animation: mz-toast-in .3s ease;
}

.mz-toast.success { border-left-color: #22c55e; }
.mz-toast.warning { border-left-color: #f59e0b; }
.mz-toast.error   { border-left-color: #ef4444; }

.mz-toast .toast-icon { font-size: 1.15rem; margin-top: 1px; }
.mz-toast.success .toast-icon { color: #22c55e; }
.mz-toast.warning .toast-icon { color: #f59e0b; }
.mz-toast.error   .toast-icon { color: #ef4444; }
.mz-toast.info    .toast-icon { color: var(--mz-primary); }

.mz-toast .toast-body-text {
    font-size: .9rem;
    color: var(--mz-text-main);
}

.mz-toast.hide {
    animation: mz-toast-out .3s ease forwards;
}

@keyframes mz-toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes mz-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(30px); }
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 767.98px) {
    body { padding-top: 64px; }
    .mz-navbar { height: 64px; }
    .mz-hero { min-height: 420px; text-align: center; }
    .mz-hero-search { margin: 0 auto; }
    .mz-stats { margin-top: -40px; }
    .mz-section { padding: 52px 0; }
    .mz-step::before { display: none; }
}
