/* ============================================================
   Application Detail (single-application.php)
   对照 application-detail.html 新版式：
   .ad-hero / .ad-features / .ad-stats / .ad-solutions /
   featured products(.app-card*) + 保留区块(方案概述 / 案例研究 / FAQ)
   仅在 is_singular('application') 条件入队。
   配色沿用主题 style.css 设计语言（#68c4d4 / #0097a7 / #19284c）。
   ============================================================ */

/* ---------- Hero ---------- */
.ad-hero { padding: 64px 0; background: #fff; }
.ad-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ad-hero-text h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: #19284c; line-height: 1.2; margin: 0 0 16px; }
.ad-hero-text > p { font-size: 15px; line-height: 1.85; color: #5a6b7b; margin: 0 0 26px; }

.ad-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.ad-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #33546b; line-height: 1.5; }
.ad-features li i { color: #2aa9c4; flex: 0 0 auto; }

.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ad-stat { text-align: center; padding: 18px 8px; background: #f3f9fb; border-radius: 12px; }
.ad-stat-num { font-size: 26px; font-weight: 800; color: #2aa9c4; line-height: 1; }
.ad-stat-label { font-size: 12px; color: #7a8a99; margin-top: 8px; }

.ad-hero-img img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 22px 50px rgba(20,40,90,.16); }

/* ---------- Section subtitle + titles (scoped) ---------- */
.application-detail .inner-subtitle { text-align: center; max-width: 780px; margin: 0 auto 42px; font-size: 15px; line-height: 1.8; color: #5a6b7b; }
.application-detail .inner-title { color: #19284c; }

/* ---------- Solutions grid ---------- */
.ad-solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ad-sol-card { background: #fff; border: 1px solid #eef2f4; border-radius: 14px; padding: 32px 26px; text-align: center; box-shadow: 0 6px 20px rgba(20,40,90,.05); transition: all .3s; }
.ad-sol-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(19,25,86,.12); border-color: #68c4d4; }
.ad-sol-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg,#68c4d4,#0097a7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; }
.ad-sol-card h4 { font-size: 18px; font-weight: 700; color: #19284c; margin: 0 0 10px; }
.ad-sol-card p { font-size: 14px; line-height: 1.7; color: #666; margin: 0; }

/* ---------- Featured product card link ---------- */
.app-card-link { display: inline-flex; align-items: center; gap: 6px; color: #2aa9c4; font-weight: 600; font-size: 14px; }
.app-card-link i { transition: transform .2s; }
.app-card:hover .app-card-link i { transform: translateX(4px); }

/* ---------- Solution summary (kept section) ---------- */
.solution-sum-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.solution-sum-text .inner-title { text-align: left; }
.solution-sum-body { font-size: 15px; line-height: 1.85; color: #5a6b7b; margin-top: 14px; }
.solution-sum-img img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 18px 44px rgba(20,40,90,.14); }

/* ---------- Case study (kept section) ---------- */
.case-body { max-width: 900px; margin: 0 auto 30px; }
.case-text { font-size: 15px; line-height: 1.85; color: #5a6b7b; text-align: center; }
.case-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-result-card { background: #fff; border: 1px solid #eef2f4; border-radius: 14px; padding: 26px 16px; text-align: center; box-shadow: 0 6px 18px rgba(20,40,90,.05); }
.case-result-num { font-size: 30px; font-weight: 800; color: #2aa9c4; line-height: 1; }
.case-result-label { font-size: 13px; color: #7a8a99; margin-top: 10px; }

/* ---------- FAQ (kept section, 模板用 .faq-q/.faq-a，补齐与 .faq-question 一致的样式) ---------- */
.application-detail .faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; transition: background .3s; }
.application-detail .faq-q:hover { background: #f9fafb; }
.application-detail .faq-q span { font-size: 15px; font-weight: 600; color: #1a1a2e; flex: 1; line-height: 1.5; }
.application-detail .faq-q i { font-size: 14px; color: #68c4d4; margin-left: 15px; transition: transform .3s; flex-shrink: 0; }
.application-detail .faq-item.active .faq-q i { transform: rotate(45deg); }
.application-detail .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #fafcfc; }
.application-detail .faq-a-inner { padding: 4px 24px 22px; }
.application-detail .faq-a p { margin: 0; color: #555; line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .ad-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .ad-solutions { grid-template-columns: repeat(2, 1fr); }
    .solution-sum-grid { grid-template-columns: 1fr; gap: 28px; }
    .solution-sum-text .inner-title { text-align: center; }
    .case-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ad-features { grid-template-columns: 1fr; }
    .ad-stats { grid-template-columns: repeat(2, 1fr); }
    .ad-solutions { grid-template-columns: 1fr; }
}
