/* about/index/aptitude.html */

.aptitude-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.aptitude-list li { min-width: 0; margin: 0; transition: transform var(--transition), box-shadow var(--transition); }
/* 兜底：grid 容器里的 ::before/::after 会成为真实网格项。历史上模板挂过 clearfix（伪元素
   display:block 占位），第一张图被挤到第 2 格、末尾多出空位；这里直接禁用两个伪元素。 */
.aptitude-list::before,
.aptitude-list::after { display: none; content: none; }
.aptitude-list li .img {
    display: grid;
    place-items: center;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--radius-md);
    background: hsl(var(--surface-h) 20% 97%);
}
.aptitude-list li .img img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.aptitude-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.aptitude-list li h3 { margin: 12px 0 0; color: var(--tblr-heading-color); font-size: 15px; font-weight: 650; line-height: 1.5; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* about/index/contact.html */

/* 在线客服横幅 */
.contact-kf-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, hsl(var(--brand-h) 78% 42%), hsl(var(--brand-h) 72% 30%)); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.contact-kf-banner:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-kf-banner > i { flex: 0 0 auto; font-size: 34px; }
.contact-kf-banner .txt { flex: 1; min-width: 0; }
.contact-kf-banner .txt b { display: block; font-size: 17px; }
.contact-kf-banner .txt span { font-size: 12px; opacity: .85; }
.contact-kf-banner .go { flex: 0 0 auto; padding: 6px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: 14px; }

/* 联系信息列表 */
.contact-info { margin-top: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--tblr-border-color); }
.contact-item:last-child { border-bottom: none; }
.contact-item > .ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); text-align: center; line-height: 38px; font-size: 18px; }
.contact-item .info { flex: 1; min-width: 0; color: var(--tblr-body-color); line-height: 1.8; }
.contact-item label { display: inline-block; width: 78px; color: var(--tblr-secondary-color); font-size: 13px; vertical-align: top; }
.contact-item .val { display: inline; color: var(--tblr-heading-color); font-size: 14px; overflow-wrap: anywhere; }
.contact-item .val a { color: var(--brand-strong); }
.contact-item .val a.qun-btn { display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 12px; line-height: 1.8; }
.contact-item .qr-img { display: block; width: 140px; height: 140px; margin-top: 10px; border: 1px solid var(--tblr-border-color); border-radius: var(--radius-sm); cursor: pointer; }
.contact-qr-dialog-img { display: block; width: min(320px, 100%); height: auto; }

/* about/index/feature.html */

.feature-list { padding: 10px 0; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; padding: 24px 18px; border-bottom: 1px solid var(--tblr-border-color); transition: background var(--transition); }
.feature-item:hover { background: hsl(var(--surface-h) 20% 97%); }
.feature-item:last-child { border-bottom: none; }
.feature-icon { flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-md); background: var(--brand-soft); display: grid; place-items: center; }
.feature-icon img { max-width: 48px; max-height: 48px; object-fit: contain; }
.feature-body { flex: 1; min-width: 0; }
.feature-title { margin-bottom: 8px; color: var(--tblr-heading-color); font-size: 17px; font-weight: 700; }
.feature-desc { color: var(--tblr-secondary-color); font-size: 14px; line-height: 1.8; }

/* about/index/layout.html */

/* ===== 关于我们页面布局 ===== */
/* 顶部留白只留 15px：卡片紧接导航，再大就成空白带 */
.about-layout { width: 100%; margin: 15px auto 48px; }
.about-side {
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--radius-md);
    background: var(--tblr-card-bg);
    box-shadow: var(--shadow-sm);
}
.about-side-title {
    padding: 15px 18px;
    border-bottom: 1px solid var(--tblr-border-color);
    color: var(--tblr-heading-color);
    font-size: 15px;
    font-weight: 700;
}
.about-side-nav { padding: 6px 0; }
.about-side-nav li { border-left: 3px solid transparent; transition: background var(--transition), border-color var(--transition); }
.about-side-nav li a { display: block; padding: 10px 18px; color: var(--tblr-secondary-color); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.about-side-nav li:hover,
.about-side-nav li.on { border-left-color: var(--brand); background: var(--brand-soft); }
.about-side-nav li:hover a,
.about-side-nav li.on a { color: var(--brand-strong); }
.about-side-nav li.on a { font-weight: 650; }
.about-main {
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--radius-md);
    background: var(--tblr-card-bg);
    box-shadow: var(--shadow-sm);
}
.about-main-header { padding: 12px 24px; border-bottom: 1px solid var(--tblr-border-color); }
.about-main-body { padding: 28px; }
.about-content { color: var(--tblr-body-color); line-height: 1.9; overflow-wrap: anywhere; }
.about-content img { max-width: 100%; height: auto; }
/* 表格：display:block 会让表格退化收缩、表头与数据列错位，这里保持 table 布局；窄屏靠单元格内换行适配 */
.about-content table { display: table; width: 100%; max-width: 100%; table-layout: auto; border-collapse: collapse; }
.about-content table th,
.about-content table td { padding: 10px 14px; border: 1px solid var(--tblr-border-color); }
.about-content table th { background: var(--surface-2); font-weight: 650; }

/* 两列并排时归零 Bootstrap g-3 的垂直 gutter（.row > * 的 margin-top:16px）：
   .about-layout 的 margin-top 已统一提供顶部留白，只归零左列会让右侧 .col-md-10
   整块低 16px，两张卡片顶边就对不齐。窄屏（<768px）两列堆叠时保留 g-3 的 16px 间距。 */
@media (min-width: 768px) {
    .about-layout > [class*="col-"] { margin-top: 0; }
}

/* 特色功能：图标加载失败时的兜底图标；列表为空时的空态 */
.feature-icon-fallback { font-size: 32px; color: var(--brand); }
.feature-empty { padding: 80px 0; color: var(--muted); text-align: center; }
.feature-empty-icon { display: block; margin-bottom: 20px; font-size: 60px; }
.feature-empty-text { font-size: 16px; }

@media (max-width: 992px) {
    .aptitude-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 768px) {
    /* 手机端顶部留白已由 .page-shell 的 padding-top:15px 提供，这里不叠加
       （旧值 18px 会叠成 33px） */
    .about-layout { margin-top: 0; }

    /* 容器宽度：全站 .page-shell 手机端是 calc(100% - 20px)（左右各留 10px），
       本页按 py 侧 wap /about 的形态整块铺满，覆盖为 calc(100%)；左右呼吸改由卡片
       内部提供（.about-side-nav 左右 6px、.about-main-body 16px）。
       .main.page-shell 特异性高于 theme.css 的 .page-shell，且本文件后加载。 */
    .main.page-shell { width: calc(100%); }

    /* 手机端复用 py 侧 wap /about 的 wa-tabs + wa-content 形态：
       侧栏卡片与内容卡片合并成一张卡——顶部横向 Tab 条（可横滑）、下方内容直连，
       去掉 PC 的「页面标题」行与面包屑，避免出现两个分离卡片的割裂感。 */
    .about-layout > [class*="col-"] { margin-top: 0; }
    .about-side,
    .about-main { box-shadow: none; }
    .about-side {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-bottom: 0;
    }
    .about-side-title { display: none; }
    .about-side-nav {
        display: flex;
        align-items: stretch;
        margin: 0;
        padding: 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .about-side-nav::-webkit-scrollbar { display: none; }
    .about-side-nav li {
        flex: 0 0 auto;
        margin: 0;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }
    .about-side-nav li a {
        display: block;
        padding: 12px 14px;
        font-size: 14px;
        white-space: nowrap;
    }
    .about-side-nav li.on,
    .about-side-nav li:hover {
        border-left-color: transparent;
        border-bottom-color: var(--brand);
        background: transparent;
    }
    .about-main {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .about-main-header { display: none; }
    .about-main-body { padding: 16px; }

    .contact-kf-banner { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
    .contact-kf-banner .go { margin-left: 50px; }
    /* 手机竖屏隐藏横幅描述，避免小屏换行拥挤 */
    .contact-kf-banner .txt span { display: none; }
}
@media (max-width: 576px) {
    .aptitude-list { grid-template-columns: 1fr; }
    .aptitude-list li .img { height: 280px; }
    .contact-item label { display: block; width: auto; margin-bottom: 4px; }
    .contact-item .val { display: block; }
    .feature-item { gap: 14px; padding: 20px 0; }
    .feature-icon { flex-basis: 48px; width: 48px; height: 48px; }
}
