/* ============================================================
   医硕科技官网 · 全局样式 style.css
   ------------------------------------------------------------
   说明：
   - 由原 index.css 全屏滚动样式重构而来，统一 PC/平板/手机响应式
   - 移除 html { height: calc(100vh*6); overflow: hidden }
     与 ::-webkit-scrollbar { width: 0 }，恢复原生滚动
   - 保留品牌视觉：主色 #4653FE、深蓝 #06294F、20px 圆角卡片、
     渐变半透明卡片等全部现有风格
   - 新增 Header / Footer / 页面骨架 / 卡片 / 网格 / 表单等组件
   ============================================================ */

/* ---------- 基础 Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    color: #06294F;
    line-height: 1.7;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s ease;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

/* ---------- 滚动条（恢复原生滚动，保留细美化） ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .2);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background-color: #f0f1f5;
    border-radius: 6px;
}

/* ---------- 品牌色变量 ---------- */
:root {
    --brand: #4653FE;
    --brand-light: #7E97F0;
    --ink: #06294F;
    --ink-2: #666666;
    --radius: 20px;
    --shadow: 0px 2px 10px 0px rgba(0, 0, 0, .08);
    --header-h: 80px;
}

/* ---------- 布局容器 ---------- */
.container {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   Header 导航（所有页面共用）
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 12px rgba(6, 41, 79, .05);
    z-index: 999;
}

.header-logo {
    display: flex;
    align-items: center;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-item {
    position: relative;
    display: inline-block;
    padding: 8px 2px;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    white-space: nowrap;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    transition: width .25s ease;
}

.nav-item:hover {
    color: var(--brand);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--brand);
    font-weight: 500;
}

/* 移动端汉堡按钮 */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
}

.header-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.header-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-toggle.open span:nth-child(2) {
    opacity: 0;
}

.header-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Footer 页脚（所有页面共用，内容保留自原 cent6_2）
   ============================================================ */
.footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(6, 41, 79, .08);
    padding: 56px 0 30px;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(6, 41, 79, .08);
}

.footer-brand {
    flex: 0 0 auto;
    min-width: 260px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    margin-right: 12px;
}

.footer-brand-name {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.6rem;
    color: #082A50;
}

.footer-brand-desc {
    margin-top: 10px;
    font-size: .95rem;
    color: var(--ink-2);
}

.footer-col {
    flex: 0 0 auto;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #001329;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    display: block;
    padding-top: 8px;
    font-size: .95rem;
    color: var(--ink-2);
    line-height: 1.6;
}

/* 页脚联系电话：两行手机号垂直对齐（标签列 + 号码列） */
.footer-col .footer-phone {
    display: grid;
    grid-template-columns: auto 1fr;
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-qr {
    flex: 0 0 auto;
    text-align: center;
}

.footer-qr img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.footer-qr p {
    margin-top: 10px;
    font-size: 1rem;
    color: #062A50;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    font-size: .85rem;
    color: #666666;
    text-align: center;
}

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

.footer-bottom a:hover {
    color: var(--brand);
}

.footer-bottom .footer-beian img {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ============================================================
   加载动画（替代原 anime.js 方案，纯 CSS @keyframes）
   ============================================================ */
#loading {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}

#loading.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loading-image {
    width: 120px;
    height: 120px;
    animation: loadingSpin 2s ease-in-out infinite;
}

@keyframes loadingSpin {
    0%   { transform: rotateY(0deg); opacity: 1; }
    25%  { transform: rotateY(180deg); opacity: .4; }
    50%  { transform: rotateY(360deg); opacity: 1; }
    75%  { transform: rotateY(180deg); opacity: .4; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

/* 无 JS 时直接显示页面，避免加载动画永久遮罩
   （html.no-js 由 head 内联脚本在 JS 可用时移除） */
html.no-js #loading {
    display: none;
}

/* ============================================================
   内页骨架：Page Hero（面包屑 + 标题 + 简介）
   ============================================================ */
.page-hero {
    padding: calc(var(--header-h) + 56px) 0 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .88) 100%),
        url(https://pic.imgdb.cn/item/66f665def21886ccc0e9c659.jpg) no-repeat center / cover;
    border-bottom: 1px solid rgba(6, 41, 79, .06);
}

.breadcrumb {
    font-size: .9rem;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #b8bfd0;
}

.page-title {
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
}

.page-desc {
    max-width: 860px;
    margin-top: 16px;
    font-size: 1.05rem;
    color: #33445c;
    line-height: 1.9;
}

/* ============================================================
   区块标题（首页与内页共用）
   ============================================================ */
.section {
    padding: 72px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 2px;
}

.section-sub {
    text-align: center;
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--ink);
}

.section-more {
    display: block;
    text-align: center;
    margin-top: 36px;
    color: var(--brand);
    font-size: 1rem;
}

.section-more:hover {
    text-decoration: underline;
}

/* ============================================================
   通用组件：按钮 / 卡片 / 网格
   ============================================================ */
.section--alt {
    background: #f7f8fb;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    background: rgba(70, 83, 254, .1);
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brand);
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, .1);
    text-align: center;
    transition: background .2s ease, transform .2s ease;
}

.btn:hover {
    background: #3a45d8;
    transform: translateY(-1px);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .9) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   首页 Hero（保留原 cent1 视觉）
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url(https://pic.imgdb.cn/item/66f665aef21886ccc0e98aa7.jpg) no-repeat center / cover;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-card {
    width: 68%;
    max-width: 760px;
    padding: 48px 56px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .8) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(6, 41, 79, .08);
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.4;
}

.hero-sub {
    margin-top: 20px;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 4px;
}

.hero-txt {
    margin-top: 14px;
    font-size: 1.05rem;
    color: #33445c;
    line-height: 2;
}

.hero-btn {
    margin-top: 36px;
}

/* ============================================================
   首页：产品 / 方案卡片
   ============================================================ */
.feature-card {
    padding: 36px 28px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(70, 83, 254, .12);
}

.feature-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #000;
}

.feature-card .divider {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand);
    margin: 18px auto;
}

.feature-card p {
    font-size: .98rem;
    color: var(--ink-2);
    line-height: 1.8;
}

/* 方案列表（首页 solutions 概览） */
.solution-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.solution-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    font-size: 1.2rem;
    color: var(--ink);
    background: linear-gradient(179deg, rgba(251, 251, 251, .35) 0%, rgba(255, 255, 255, .92) 100%);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: color .2s ease, transform .2s ease;
}

.solution-item:hover {
    color: var(--brand);
    transform: translateX(4px);
}

.solution-item .arrow {
    color: #b8bfd0;
    font-size: 1rem;
}

/* 服务优势（隐私保护 / 交付准时 / 方案合理） */
.advantage-card {
    padding: 40px 30px;
    text-align: center;
}

.advantage-card img {
    width: 146px;
    height: 170px;
    object-fit: contain;
    margin-bottom: 22px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
}

.advantage-card .divider {
    width: 60px;
    border: 3px solid var(--brand);
    border-radius: 2px;
    margin: 22px auto;
}

.advantage-card p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 2;
}

/* ============================================================
   首页：案例卡片
   ============================================================ */
.case-card {
    padding: 32px 28px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, .1);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(70, 83, 254, .12);
}

.case-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.case-card-head img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.case-card h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #000;
}

.case-card p {
    font-size: .98rem;
    color: #06294F;
    line-height: 1.9;
}

/* ============================================================
   首页：用户口碑
   ============================================================ */
.review-card {
    display: flex;
    gap: 20px;
    padding: 26px 30px;
    background: #fff;
    box-shadow: 0px 2px 10px 0px rgba(70, 83, 254, .2);
    border-radius: 48px;
    margin-bottom: 20px;
}

.review-num {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    background: var(--brand);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, .2);
    border-radius: 50%;
    font-size: 1.6rem;
    font-family: DIN-Regular, DIN, sans-serif;
    color: #fff;
}

.review-body {
    flex: 1;
}

.review-stars {
    color: #F5A623;
    letter-spacing: 2px;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.review-body p {
    font-size: 1rem;
    color: #000;
    line-height: 1.9;
}

.review-author {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--ink-2);
}

/* ============================================================
   联系我们 / 企业文化卡片
   ============================================================ */
.culture-card {
    position: relative;
    padding: 30px 24px 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .8) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.culture-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
    background: #fff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .2);
    border: 3px solid rgba(70, 83, 254, .3);
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 600;
    color: #8B93FA;
    transition: transform .6s ease;
}

.culture-card:hover .badge {
    animation: circling 1s;
}

.culture-card .badge img {
    width: 42px;
    height: 34px;
    object-fit: contain;
}

.culture-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
}

.culture-card .divider {
    width: 60px;
    height: 4px;
    background: var(--brand-light);
    border-radius: 3px;
    margin: 16px auto;
}

.culture-card p {
    font-size: .95rem;
    color: var(--ink);
    line-height: 1.9;
}

@keyframes circling {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

/* 联系信息块 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.contact-info-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .92) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-card .icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 83, 254, .1);
    color: var(--brand);
    font-size: 1.4rem;
    font-style: normal;
    border-radius: 12px;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
}

.contact-info-card p {
    margin-top: 6px;
    font-size: .98rem;
    color: var(--ink);
    word-break: break-all;
}

/* ============================================================
   文章页（article/*）
   ============================================================ */
.article {
    max-width: 900px;
    margin: 0 auto;
}

.article-body {
    padding: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .92) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    margin: 24px 0 10px;
}

.article-body p {
    font-size: 1rem;
    color: #33445c;
    line-height: 2;
    margin-bottom: 12px;
}

.article-body ul {
    margin: 10px 0 16px 20px;
}

.article-body ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #33445c;
    line-height: 1.9;
}

.article-body ul li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* ============================================================
   方案 / 产品 / 案例 / 口碑 列表页
   ============================================================ */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.solution-grid .feature-card {
    text-align: left;
}

.solution-grid .feature-card img {
    width: 60px;
    height: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 44px;
}

/* ============================================================
   响应式媒体查询
   ============================================================ */
/* 平板 */
@media (max-width: 1024px) {
    .header-nav {
        gap: 1.4rem;
    }

    .hero-card {
        width: 82%;
        padding: 40px 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .header {
        padding: 0 4%;
    }

    .header-logo img {
        height: 34px;
    }

    /* 汉堡菜单展开 */
    .header-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 6%;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid rgba(6, 41, 79, .08);
        box-shadow: 0 12px 24px rgba(6, 41, 79, .08);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .header-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        padding: 14px 4px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(6, 41, 79, .06);
    }

    .nav-item::after {
        display: none;
    }

    .nav-item.active {
        color: var(--brand);
        font-weight: 600;
    }

    .page-hero {
        padding: calc(var(--header-h) + 40px) 0 36px;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-inner {
        padding: calc(var(--header-h) + 24px) 0 60px;
    }

    .hero-card {
        width: 100%;
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-sub {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }

    .hero-txt {
        font-size: .95rem;
    }

    .grid-3,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-list,
    .product-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        border-radius: 24px;
        padding: 20px 18px;
    }

    /* 无 JS 降级：禁用汉堡按钮，直接展开导航，避免菜单不可用 */
    html.no-js .header-toggle {
        display: none;
    }

    html.no-js .header-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 1.6rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 6px 0;
        background: transparent;
        border-bottom: none;
        box-shadow: none;
    }

    html.no-js .nav-item {
        padding: 8px 0;
        font-size: 1rem;
        border-bottom: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .article-body {
        padding: 28px 20px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .footer-bottom {
        font-size: .78rem;
    }
}
