/* =========================================================
   Application 归档总页 /application/  （archive-application.php）
   仅在 is_post_type_archive('application') 条件入队。类名统一 .aa-* 前缀。
   ========================================================= */

/* Hero
   高度锁在 600–800；比例由模板用 --aa-hero-ratio 传进来（等于后台那张图的实际宽高比，
   当前为 1920×900）。比例对齐后 cover 就是「整张图刚好铺满」，不裁切也不留边：
   视口 1280px 时高 600，1440px 时高 675，1707px 时高 800，这段区间内完整显示。
   超出区间才轻微裁切，并用 min/max-height 兜住设要求的 600–800 区间。 */
.aa-hero {
    position: relative;
    /* 必须显式定宽：aspect-ratio 对 width:auto 的块会把被 min/max-height 夹住的高度
       沿比例反算回宽度，实测导致 993–1280 档 hero 宽被撑到 1280（图右侧推出屏幕）、
       1920/2400 档又缩到 1706（右侧露 body 白底），只有 1295–1722 是对的。
       定宽后 aspect-ratio 只算高度，宽度永远铺满视口，超区间时由 cover 承担裁切。 */
    width: 100%;
    display: flex;
    align-items: center;
    aspect-ratio: var(--aa-hero-ratio, 1920 / 900);
    min-height: 600px;
    max-height: 800px;
    background-size: cover;
    background-position: center;
    background-color: #131956;   /* 图没加载出来时的品牌色底，不露白 */
}
/* .aa-hero 是 flex 容器，其子项 .container 会按内容收缩（实测塌成 640px 并居中），
   导致首屏文案左边缘与下方各板块容器错位约 280px。显式给满宽让它回到普通流的对齐基线。 */
.aa-hero > .container { width: 100%; }
.aa-hero-inner { max-width: 600px; color: #fff; padding: 60px 0; }
.aa-hero-inner h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.2; margin: 0 0 20px; color: #fff; }
.aa-hero-inner p { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.9); margin: 0; }

/* Section base */
.aa-section { padding: 72px 0; }
.aa-soft { background: #f3f9fb; }
.aa-title { text-align: center; font-size: 30px; font-weight: 800; color: #17325c; margin: 0 0 12px; line-height: 1.3; }
.aa-sub { text-align: center; max-width: 760px; margin: 0 auto 44px; font-size: 15px; line-height: 1.7; color: #5a6b7b; }

/* Explore by Industry */
.aa-industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.aa-ind-card { display: block; background: #fff; border: 1px solid #eef3f6; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(20,40,90,.06); text-decoration: none; transition: .3s; }
.aa-ind-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,40,90,.14); }
.aa-ind-img { aspect-ratio: 16/9; overflow: hidden; background: #eef3f5; }
.aa-ind-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.aa-ind-card:hover .aa-ind-img img { transform: scale(1.06); }
.aa-ind-body { padding: 20px 22px 24px; display: flex; align-items: center; gap: 14px; }
.aa-ind-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: #e6f6f9; color: #2aa9c4; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.aa-ind-txt { flex: 1; min-width: 0; }
.aa-ind-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.aa-ind-head h3 { flex: 1; font-size: 18px; font-weight: 700; color: #17325c; margin: 0; }
.aa-ind-arrow { color: #2aa9c4; font-size: 15px; transition: transform .25s; }
.aa-ind-card:hover .aa-ind-arrow { transform: translateX(5px); }
.aa-ind-body p { font-size: 13.5px; line-height: 1.75; color: #5a6b7b; margin: 0; }

/* Explore Popular Applications */
.aa-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.aa-pop-card { background: #fff; border: 1px solid #eef3f6; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,40,90,.06); display: flex; flex-direction: column; transition: .3s; }
.aa-pop-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(20,40,90,.12); }
.aa-pop-img { aspect-ratio: 16/10; overflow: hidden; background: #eef3f5; display: block; }
.aa-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.aa-pop-card:hover .aa-pop-img img { transform: scale(1.06); }
.aa-pop-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.aa-pop-body h3 { font-size: 16px; font-weight: 700; color: #17325c; margin: 0 0 10px; line-height: 1.4; }
.aa-pop-body h3 a { color: inherit; text-decoration: none; }
.aa-pop-body h3 a:hover { color: #2aa9c4; }
.aa-pop-body p { font-size: 13px; line-height: 1.7; color: #5a6b7b; margin: 0 0 16px; flex: 1; }

/* Read more / small button */
.aa-btn { align-self: flex-start; display: inline-block; background: #e6f6f9; color: #178ca6; font-weight: 700; text-decoration: none; padding: 8px 18px; border-radius: 20px; font-size: 13px; transition: .2s; }
.aa-btn:hover { background: #2aa9c4; color: #fff; }

/* Find the Right Wireless Technology */
.aa-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.aa-tech-card { background: #eef7f9; border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; transition: .3s; }
.aa-tech-card:hover { background: #e2f2f5; transform: translateY(-4px); }
.aa-tech-icon { width: 46px; height: 46px; color: #178ca6; font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.aa-tech-card h3 { font-size: 17px; font-weight: 700; color: #17325c; margin: 0 0 10px; }
.aa-tech-card p { font-size: 13px; line-height: 1.7; color: #5a6b7b; margin: 0 0 18px; flex: 1; }

/* CTA */
.aa-cta { background: #131956; color: #fff; padding: 64px 0; }
.aa-cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.aa-cta-tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: #68c4d4; font-weight: 700; margin-bottom: 12px; }
.aa-cta-left h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; margin: 0 0 16px; line-height: 1.25; }
.aa-cta-left p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.78); margin: 0 0 24px; max-width: 620px; }
.aa-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #2aa9c4; color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 26px; font-weight: 700; font-size: 14px; transition: .2s; }
.aa-cta-btn:hover { background: #68c4d4; }
.aa-cta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.aa-cta-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255,255,255,.92); }
.aa-cta-list i { width: 34px; height: 34px; border-radius: 50%; background: rgba(104,196,212,.18); color: #68c4d4; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }

/* Responsive */
@media (max-width: 992px) {
    .aa-industry-grid { grid-template-columns: repeat(2, 1fr); }
    .aa-pop-grid, .aa-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .aa-cta-grid { grid-template-columns: 1fr; gap: 28px; }
    /* 窄屏下 600px 高会把横幅图裁得只剩中间一条，所以降回原来的常规高度 */
    .aa-hero { min-height: 480px; }
}
@media (max-width: 600px) {
    .aa-industry-grid, .aa-pop-grid, .aa-tech-grid { grid-template-columns: 1fr; }
    /* 手机上不再跟比例（一张 2.13:1 的图在 375px 宽只能得到 176px 高，太扁），回到固定小高度 */
    .aa-hero { min-height: 360px; aspect-ratio: auto; }
}
