/* 业务板块页面样式 */

/* 让 body 撑满视口高度，footer 置底（仅作用于业务页，不影响主页） */
html, body.business-page {
    height: 100%;
}
body.business-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 覆盖全局 body 的 padding-bottom，避免 footer 离视口底部有空隙 */
    padding-bottom: 0;
}
body.business-page > .container {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    /* 覆盖全局 .container 的 padding-bottom:60px !important */
    padding-bottom: 48px !important;
}
body.business-page > .site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* 顶部 header：固定顶部，保留不透明底色（与首页一致），加向下投影 */
body.business-page > header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

/* 网站底部 footer（与设计师页一致） */
.site-footer {
    flex-shrink: 0;
    margin-top: 24px;
    background: #1a1a1a;
    border-top: 3px solid #2f8a64;
}
.footer-bottom {
    padding: 5px 16px;
    text-align: center;
    color: rgba(224, 224, 224, 0.65);
    font-size: 13px;
    line-height: 1.4;
}
.footer-bottom a {
    color: inherit;
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* 返回首页按钮（与设计师页一致） */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 14px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.business-hero {
    position: relative;
    background: #277a56;
    color: #fff;
    /* 与顶部固定 header 拉开 55px 间距 */
    margin-top: 55px;
    /* 不再用大 padding / 居中拉伸，高度只由内容决定 */
    padding: 43px 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(31, 111, 74, 0.22);
}
/* 仅服务流程页：桌面端额外增高 100px（上下各 50px） */
.business-hero.process-hero {
    padding: 98px 20px;
}
/* 漂浮气泡（有大有小，随机概率出现） */
.business-hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    filter: blur(1px);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: heroFloat2 7s ease-in-out infinite;
}
/* 第二组：持续升起淡出的“冒泡”感 */
.business-hero-bubble.rise {
    animation: heroRise 6s ease-in infinite;
}
/* 尺寸拉开（大一点更大），时长差异大 → 出现像随机概率 */
.business-hero-bubble.b1 { width: 14px; height: 14px; left: 8%;   top: 72%; animation-delay: 0.0s;  animation-duration: 11.0s; }
.business-hero-bubble.b2 { width: 6px;  height: 6px;  left: 16%;  top: 40%; animation-delay: 3.7s;  animation-duration: 6.2s;  background: rgba(255,255,255,0.22); }
.business-hero-bubble.b3 { width: 22px; height: 22px; left: 24%;  top: 80%; animation-delay: 6.1s;  animation-duration: 12.8s; }
.business-hero-bubble.b4 { width: 8px;  height: 8px;  left: 33%;  top: 26%; animation-delay: 1.9s;  animation-duration: 7.5s;  background: rgba(255,255,255,0.2); }
.business-hero-bubble.b5 { width: 12px; height: 12px; left: 42%;  top: 66%; animation-delay: 8.8s;  animation-duration: 10.4s; }
.business-hero-bubble.b6 { width: 7px;  height: 7px;  left: 50%;  top: 34%; animation-delay: 2.6s;  animation-duration: 8.1s;  background: rgba(255,255,255,0.24); }
.business-hero-bubble.b7 { width: 18px; height: 18px; left: 58%; top: 78%; animation-delay: 5.3s;  animation-duration: 13.6s; }
.business-hero-bubble.b8 { width: 5px;  height: 5px;  right: 30%; top: 22%; animation-delay: 0.9s;  animation-duration: 6.9s;  background: rgba(255,255,255,0.18); }
.business-hero-bubble.b9 { width: 10px; height: 10px; right: 22%; top: 60%; animation-delay: 9.5s;  animation-duration: 11.7s; }
.business-hero-bubble.b10{ width: 16px; height: 16px; right: 12%; top: 38%; animation-delay: 4.2s;  animation-duration: 12.0s; background: rgba(255,255,255,0.2); }
.business-hero-bubble.b11{ width: 7px;  height: 7px;  left: 5%;   top: 50%; animation-delay: 7.4s;  animation-duration: 9.3s; }
.business-hero-bubble.b12{ width: 13px; height: 13px; left: 64%;  top: 50%; animation-delay: 2.1s;  animation-duration: 10.9s; background: rgba(255,255,255,0.22); }
.business-hero-bubble.b13{ width: 9px;  height: 9px;  left: 3%;   top: 30%; animation-delay: 4.6s;  animation-duration: 8.8s;  background: rgba(255,255,255,0.2); }
.business-hero-bubble.b14{ width: 18px; height: 18px; left: 20%;  top: 55%; animation-delay: 1.3s;  animation-duration: 13.2s; }
.business-hero-bubble.b15{ width: 6px;  height: 6px;  left: 36%;  top: 78%; animation-delay: 8.2s;  animation-duration: 7.4s;  background: rgba(255,255,255,0.18); }
.business-hero-bubble.b16{ width: 14px; height: 14px; left: 48%;  top: 15%; animation-delay: 3.4s;  animation-duration: 11.5s; }
.business-hero-bubble.b17{ width: 8px;  height: 8px;  left: 60%;  top: 88%; animation-delay: 6.7s;  animation-duration: 9.6s;  background: rgba(255,255,255,0.22); }
.business-hero-bubble.b18{ width: 20px; height: 20px; right: 38%; top: 30%; animation-delay: 0.5s;  animation-duration: 12.4s; }
.business-hero-bubble.b19{ width: 7px;  height: 7px;  right: 8%;  top: 82%; animation-delay: 9.1s;  animation-duration: 8.2s;  background: rgba(255,255,255,0.2); }
.business-hero-bubble.b20{ width: 11px; height: 11px; right: 25%; top: 12%; animation-delay: 5.8s;  animation-duration: 10.1s; background: rgba(255,255,255,0.18); }
@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-30px, -24px); }
}
/* 大部分时间隐藏，仅中间一小段出现 → 随机概率感 */
@keyframes heroFloat2 {
    0%   { transform: translateY(0) scale(1);     opacity: 0; }
    8%   { opacity: .9; }
    22%  { transform: translateY(-26px) scale(1.15); opacity: .9; }
    38%  { opacity: 0; }
    100% { transform: translateY(-40px) scale(1);  opacity: 0; }
}
@keyframes heroRise {
    0%   { transform: translateY(10px) scale(.8); opacity: 0; }
    10%  { opacity: .85; }
    45%  { opacity: 0; }
    100% { transform: translateY(-70px) scale(1.2); opacity: 0; }
}
.business-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; animation: heroIn .7s ease both; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.business-title {
    font-size: 36px;
    font-weight: 700;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    margin: 0 0 12px;
    letter-spacing: 4px;
    position: relative;
    display: block;
    text-align: center;
}

.business-subtitle {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    opacity: .95;
    padding: 4px 20px;
    letter-spacing: .5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.business-page-container { padding: 110px 0 48px; }

.business-section { }
.business-empty {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 15px;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}
@media (min-width: 481px) {
    .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .business-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.business-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    border: 1px solid #d8e6df;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 4px 14px rgba(31,111,74,.08);
}
/* 一排一排依次淡入上浮（仅动画，不改动卡片外观样式） */
.business-card {
    animation: businessCardIn .5s ease both;
}
.business-card:nth-child(1)  { animation-delay: .52s; }
.business-card:nth-child(2)  { animation-delay: .58s; }
.business-card:nth-child(3)  { animation-delay: .64s; }
.business-card:nth-child(4)  { animation-delay: .70s; }
.business-card:nth-child(5)  { animation-delay: .76s; }
.business-card:nth-child(6)  { animation-delay: .82s; }
.business-card:nth-child(7)  { animation-delay: .88s; }
.business-card:nth-child(n+8) { animation-delay: .92s; }
@keyframes businessCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.business-card:hover {
    box-shadow: 0 6px 16px rgba(46,139,87,.14);
    border-color: #2f8a64;
}
.business-card-action {
    position: absolute;
    top: 0; right: 0;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 5px 8px 5px 12px;
    font-size: 12px;
    line-height: 1;
    color: #1f6f4a;
    background-color: rgba(255,255,255,.88);
    border: 1px solid #e3f1ea;
    opacity: .7;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 12px;
    box-shadow: none;
    pointer-events: none;
    z-index: 3;
}
.business-card-arrow {
    position: relative;
    width: 10px; height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    display: inline-block;
}
.business-card-media {
    flex: 0 0 42%;
    max-width: 260px;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    border-radius: 14px 0 0 14px;
    margin: -16px 0 -16px -16px;
    background: linear-gradient(135deg, #eafaf1, #d6f0e2);
    display: flex; align-items: center; justify-content: center;
}
.business-card-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 封面遮罩：默认保持原样（绿色+白色渐变），不改动 */
.business-card-media.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(31,111,74,0.40) 0%,
            rgba(31,111,74,0.26) 45%,
            rgba(255,255,255,0.55) 80%,
            rgba(255,255,255,1) 100%),
        linear-gradient(180deg, rgba(31,111,74,0.18) 0%, rgba(31,111,74,0) 60%);
    pointer-events: none;
    transition: background .25s ease;
}
/* 鼠标移上去时只去掉绿色，保留白色渐变 */
.business-card:hover .business-card-media.has-cover::after {
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 45%,
        rgba(255,255,255,0.55) 80%,
        rgba(255,255,255,1) 100%);
}
.business-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 6px;
}
.business-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f6f4a;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3f1ea;
    letter-spacing: 2px;
}
.business-card-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #4f6b5c;
    margin: 0;
}

/* 业务详情弹窗 */
.business-detail-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 60px 20px;
    z-index: 10000;
}
.business-detail-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: businessPop .25s ease;
}
@keyframes businessPop {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.business-detail-close {
    position: absolute; top: 12px; right: 14px;
    width: 34px; height: 34px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer; z-index: 2;
    transition: background .2s;
}
.business-detail-close:hover { background: rgba(255,255,255,.32); }
.business-detail-body {
    padding: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.business-detail-head {
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1f6f4a, #34a06a);
    color: #fff;
    padding: 30px 24px 24px;
    text-align: center;
    border-radius: 18px 18px 0 0;
}
.business-detail-head.has-cover {
    background-image: linear-gradient(135deg, rgba(20,80,52,.80), rgba(31,111,74,90)), var(--cover, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.business-detail-name {
    font-size: 24px; font-weight: 700; margin: 0 0 8px;
    letter-spacing: 6px;
}
.business-detail-summary {
    font-size: 14px; opacity: .92; margin: 0; line-height: 1.6;
}
.business-detail-content {
    padding: 20px 24px 28px;
    font-size: 14px;
    line-height: 1.85;
    color: #3a4640;
}
.business-detail-content b,
.business-detail-content strong,
.business-detail-content span[style*="font-weight"] { color: #1f6f4a; }

.business-detail-content ul,
.business-detail-content ol {
    list-style: none;
    margin: 6px 0 10px;
    padding-left: 0;
}
.business-detail-content li {
    position: relative;
    margin: 4px 0;
    padding-left: 13px;
    line-height: 1.7;
}
.business-detail-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

@media (max-width: 480px) {
    /* 手机端 hero 高度（业务板块/流程页统一约 +35px，不影响桌面端） */
    .business-hero { padding: 98px 20px; }
    .business-card { gap: 12px; padding: 12px; }
    .business-card-media { flex: 0 0 38%; margin: -12px 0 -12px -12px; border-radius: 14px 0 0 14px; }
    .business-card-cover { min-height: 120px; border-radius: 14px 0 0 14px; }
    .business-card-media.has-cover::after { border-radius: 14px 0 0 14px; }
    .business-title { font-size: 28px; }
    .business-detail-body { -ms-overflow-style: none; scrollbar-width: none; }
    .business-detail-body::-webkit-scrollbar { display: none; }
}
