/* Agency frontend templates. Default deliberately has no overrides. */
.home-page[class*="frontend-template-"]{font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif}
.home-page[class*="frontend-template-"] .hero h1,.home-page[class*="frontend-template-"] .section-heading h2,.home-page[class*="frontend-template-"] .product-copy h3{text-wrap:balance}

/* 01 — dark brand */
.home-page.frontend-template-dark-brand{--tpl-accent:#39e2ff;--tpl-bg:#07111f;--tpl-panel:#0d1c2e;--tpl-text:#f5fbff;--tpl-muted:#aabbd0;background:var(--tpl-bg);color:var(--tpl-text)}
.frontend-template-dark-brand .site-header{border-color:rgba(101,211,234,.16);background:rgba(5,15,29,.88);box-shadow:0 18px 44px rgba(0,0,0,.28)}
.frontend-template-dark-brand .site-brand strong,.frontend-template-dark-brand .site-header nav a,.frontend-template-dark-brand .header-actions .text-link{color:#eaf8ff}
.frontend-template-dark-brand .site-header nav{border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.04)}
.frontend-template-dark-brand .button-primary{background:#2ed9f2;color:#04111c;box-shadow:0 12px 32px rgba(46,217,242,.22)}
.frontend-template-dark-brand .button-outline{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.04);color:#fff}
.frontend-template-dark-brand .hero{min-height:760px;background:radial-gradient(circle at 76% 35%,rgba(30,206,236,.2),transparent 34%),linear-gradient(135deg,#07111f,#0a1b30 64%,#062632)}
.frontend-template-dark-brand .hero-image{opacity:.12;filter:grayscale(1) contrast(1.3);mix-blend-mode:screen}
.frontend-template-dark-brand .hero-shade{background:linear-gradient(90deg,rgba(3,11,22,.92) 0,rgba(3,11,22,.64) 52%,rgba(3,11,22,.18))}
.frontend-template-dark-brand .hero-grid{opacity:.38;background-image:linear-gradient(rgba(57,226,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(57,226,255,.08) 1px,transparent 1px)}
.frontend-template-dark-brand .hero-content{text-align:left;padding-top:125px}
.frontend-template-dark-brand .hero-kicker{border-color:rgba(57,226,255,.36);background:rgba(8,27,43,.76);color:#66eaff;box-shadow:none}
.frontend-template-dark-brand .hero h1{max-width:900px;color:#f7fcff;font-size:72px;line-height:1.06;letter-spacing:-2px}
.frontend-template-dark-brand .hero h1 em{color:#42e3f7;font-style:normal}
.frontend-template-dark-brand .hero-content>p{color:#b8c8d9;font-size:19px}
.frontend-template-dark-brand .ai-search-showcase{border-color:rgba(112,220,240,.17);background:rgba(8,24,40,.8);box-shadow:0 24px 70px rgba(0,0,0,.28)}
.frontend-template-dark-brand .ai-platform-copy h2,.frontend-template-dark-brand .ai-platform-item strong{color:#fff}
.frontend-template-dark-brand .ai-platform-copy p{color:#9db0c5}
.frontend-template-dark-brand .section-heading h2,.frontend-template-dark-brand .product-copy h3,.frontend-template-dark-brand .monitor-copy h2{color:#f6fbff}
.frontend-template-dark-brand .section-heading>span,.frontend-template-dark-brand .product-copy>span{color:#42e3f7}
.frontend-template-dark-brand .section-heading p,.frontend-template-dark-brand .product-copy p,.frontend-template-dark-brand .product-copy ul{color:#aabbd0}
.frontend-template-dark-brand .product-feature,.frontend-template-dark-brand .product-ui,.frontend-template-dark-brand .source-ranking-demo,.frontend-template-dark-brand .workflow-grid{border-color:rgba(121,184,205,.16);background:#0c1a2b;box-shadow:0 18px 48px rgba(0,0,0,.2)}
.frontend-template-dark-brand .site-footer{border-color:rgba(255,255,255,.1);background:#050c16;color:#b7c6d5}

/* 02 — medical IP */
.home-page.frontend-template-medical-ip{--tpl-sage:#2f7669;--tpl-coral:#ec765f;background:#faf7f1;color:#1d342f}
.frontend-template-medical-ip .site-header{border:0;border-radius:999px;background:rgba(255,253,248,.92);box-shadow:0 14px 42px rgba(59,89,78,.12)}
.frontend-template-medical-ip .site-header nav{border:0;background:transparent}
.frontend-template-medical-ip .site-header nav a{color:#49635d}
.frontend-template-medical-ip .button-primary{border-radius:999px;background:#2f7669;box-shadow:0 12px 28px rgba(47,118,105,.2)}
.frontend-template-medical-ip .button-outline{border-radius:999px;border-color:#a9c3bb;background:#fffdf8;color:#2f7669}
.frontend-template-medical-ip .hero{min-height:760px;background:linear-gradient(105deg,#f6efe4 0,#f8f4ed 55%,#daeae3)}
.frontend-template-medical-ip .hero-image{width:48%;left:auto;opacity:.92;object-position:center 22%;filter:saturate(.82) contrast(.92)}
.frontend-template-medical-ip .hero-shade{background:linear-gradient(90deg,#faf7f1 0,rgba(250,247,241,.95) 48%,rgba(250,247,241,.12) 75%)}
.frontend-template-medical-ip .hero-grid{display:none}
.frontend-template-medical-ip .hero-content{text-align:left;padding-top:122px}
.frontend-template-medical-ip .hero-kicker{border:0;background:#e4eee8;color:#2f7669;box-shadow:none}
.frontend-template-medical-ip .hero h1{max-width:680px;color:#18332c;font-family:"STSong","Songti SC",serif;font-size:68px;line-height:1.12;letter-spacing:-1px}
.frontend-template-medical-ip .hero h1 em{color:#de6d57;font-style:normal}
.frontend-template-medical-ip .hero-content>p{max-width:580px;color:#60736e;font-size:19px}
.frontend-template-medical-ip .ai-search-showcase{max-width:760px;border:1px solid #d8e2dc;border-radius:28px;background:rgba(255,253,248,.9);box-shadow:0 24px 50px rgba(69,100,89,.1)}
.frontend-template-medical-ip .section-heading>span,.frontend-template-medical-ip .product-copy>span{color:#d96753}
.frontend-template-medical-ip .section-heading h2,.frontend-template-medical-ip .product-copy h3{color:#203a34;font-family:"STSong","Songti SC",serif}
.frontend-template-medical-ip .section-heading p,.frontend-template-medical-ip .product-copy p{color:#667a74}
.frontend-template-medical-ip .product-feature,.frontend-template-medical-ip .product-ui,.frontend-template-medical-ip .source-ranking-demo,.frontend-template-medical-ip .workflow-grid{border-color:#dde6e0;border-radius:28px;background:#fffdf9;box-shadow:0 16px 42px rgba(57,87,77,.08)}
.frontend-template-medical-ip .site-footer{background:#244f47;color:#e9f4f0}

/* 03 — newspaper */
.home-page.frontend-template-newspaper{--tpl-orange:#ef5a24;background:#f3f0e8;color:#171717}
.frontend-template-newspaper .site-header{top:0;width:100%;height:72px;border:0;border-bottom:3px solid #111;border-radius:0;background:#f7f3e9;box-shadow:none}
.frontend-template-newspaper .site-brand strong{font-family:"SimSun","Songti SC",serif;font-size:22px;letter-spacing:2px}
.frontend-template-newspaper .site-header nav{border:0;border-radius:0;background:transparent}
.frontend-template-newspaper .site-header nav a{color:#171717;text-transform:uppercase}
.frontend-template-newspaper .button{border-radius:0}
.frontend-template-newspaper .button-primary{background:#ef5a24;box-shadow:none}
.frontend-template-newspaper .button-outline{border:2px solid #171717;background:#f7f3e9;color:#171717}
.frontend-template-newspaper .hero{min-height:720px;border-bottom:3px solid #171717;background:#f3f0e8}
.frontend-template-newspaper .hero-image{width:42%;left:auto;opacity:.68;filter:grayscale(1) contrast(1.22);object-position:center}
.frontend-template-newspaper .hero-shade{background:linear-gradient(90deg,#f3f0e8 0,#f3f0e8 55%,rgba(243,240,232,.12))}
.frontend-template-newspaper .hero-grid{opacity:.25;background-size:24px 24px;background-image:linear-gradient(rgba(0,0,0,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.08) 1px,transparent 1px)}
.frontend-template-newspaper .hero-content{text-align:left;padding-top:104px}
.frontend-template-newspaper .hero-kicker{border:0;border-radius:0;background:#171717;color:#fff;box-shadow:none;letter-spacing:1px}
.frontend-template-newspaper .hero-kicker i{background:#ef5a24;box-shadow:none}
.frontend-template-newspaper .hero h1{max-width:760px;color:#151515;font-family:"SimSun","Songti SC",serif;font-size:72px;line-height:1.02;letter-spacing:-2px}
.frontend-template-newspaper .hero h1 em{display:inline-block;margin-top:12px;color:#ef5a24;font-style:normal}
.frontend-template-newspaper .hero-content>p{max-width:630px;color:#333;font-size:18px}
.frontend-template-newspaper .ai-search-showcase{border:2px solid #171717;border-radius:0;background:#f8f4eb;box-shadow:9px 9px 0 #171717}
.frontend-template-newspaper .section-heading>span,.frontend-template-newspaper .product-copy>span{color:#ef5a24}
.frontend-template-newspaper .section-heading h2,.frontend-template-newspaper .product-copy h3{color:#111;font-family:"SimSun","Songti SC",serif}
.frontend-template-newspaper .product-feature,.frontend-template-newspaper .product-ui,.frontend-template-newspaper .source-ranking-demo,.frontend-template-newspaper .workflow-grid{border:2px solid #171717;border-radius:0;background:#f8f4eb;box-shadow:8px 8px 0 rgba(20,20,20,.95)}
.frontend-template-newspaper .site-footer{border-top:3px solid #111;background:#171717;color:#f6f0e4}

/* 04 — personal brand */
.home-page.frontend-template-personal-brand{--tpl-blue:#2157f3;background:#fff;color:#111827}
.frontend-template-personal-brand .site-header{border:0;border-radius:0;background:rgba(255,255,255,.94);box-shadow:0 1px 0 #dfe4ef}
.frontend-template-personal-brand .site-header nav{border:0;background:transparent}
.frontend-template-personal-brand .site-header nav a{color:#3e4758}
.frontend-template-personal-brand .button{border-radius:8px}
.frontend-template-personal-brand .button-primary{background:#2157f3;box-shadow:0 14px 28px rgba(33,87,243,.18)}
.frontend-template-personal-brand .button-outline{border-color:#cbd5e1;background:#fff;color:#1b2638}
.frontend-template-personal-brand .hero{min-height:780px;background:linear-gradient(110deg,#fff 0,#fff 58%,#edf2ff 58%,#e8efff 100%)}
.frontend-template-personal-brand .hero-image{width:43%;left:auto;opacity:.62;filter:grayscale(.2) contrast(1.04);object-position:center 18%}
.frontend-template-personal-brand .hero-shade{background:linear-gradient(90deg,#fff 0,#fff 53%,rgba(255,255,255,.02) 72%)}
.frontend-template-personal-brand .hero-grid{display:none}
.frontend-template-personal-brand .hero-content{text-align:left;padding-top:130px}
.frontend-template-personal-brand .hero-kicker{padding-left:0;border:0;background:transparent;color:#2157f3;box-shadow:none;letter-spacing:1.5px}
.frontend-template-personal-brand .hero h1{max-width:820px;color:#111827;font-size:67px;line-height:1.09;letter-spacing:-2.6px}
.frontend-template-personal-brand .hero h1 em{color:#2157f3;font-style:normal}
.frontend-template-personal-brand .hero-content>p{max-width:630px;color:#536176;font-size:19px}
.frontend-template-personal-brand .ai-search-showcase{max-width:820px;border:1px solid #dce3ef;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 22px 54px rgba(45,65,110,.1)}
.frontend-template-personal-brand .section-heading>span,.frontend-template-personal-brand .product-copy>span{color:#2157f3}
.frontend-template-personal-brand .section-heading h2,.frontend-template-personal-brand .product-copy h3{color:#111827}
.frontend-template-personal-brand .product-feature,.frontend-template-personal-brand .product-ui,.frontend-template-personal-brand .source-ranking-demo,.frontend-template-personal-brand .workflow-grid{border-color:#dde4ef;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(32,50,91,.07)}
.frontend-template-personal-brand .site-footer{background:#101827;color:#d6deeb}

/* Mobile typography and spacing shared by all four templates. */
@media(max-width:720px){
  .home-page.frontend-template-dark-brand .site-header,.home-page.frontend-template-medical-ip .site-header,.home-page.frontend-template-newspaper .site-header,.home-page.frontend-template-personal-brand .site-header{top:8px;width:calc(100% - 16px);height:60px;border-radius:12px;padding:0 10px 0 12px}
  .home-page.frontend-template-newspaper .site-header{top:0;width:100%;border-radius:0}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .site-brand strong{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero{min-height:0;padding:112px 0 46px;background-position:center}
  .home-page.frontend-template-dark-brand .hero-content,.home-page.frontend-template-medical-ip .hero-content,.home-page.frontend-template-newspaper .hero-content,.home-page.frontend-template-personal-brand .hero-content{width:calc(100% - 36px);padding-top:0;text-align:left}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero h1{font-size:43px!important;line-height:1.12;letter-spacing:-1.3px}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero-content>p{font-size:17px;line-height:1.8}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero-actions{max-width:none;gap:10px}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero-actions .button{min-height:50px;font-size:15px}
  .home-page.frontend-template-medical-ip .hero-image,.home-page.frontend-template-newspaper .hero-image,.home-page.frontend-template-personal-brand .hero-image{inset:auto 0 0 auto;width:100%;height:42%;opacity:.2}
  .home-page.frontend-template-medical-ip .hero-shade,.home-page.frontend-template-newspaper .hero-shade,.home-page.frontend-template-personal-brand .hero-shade{background:linear-gradient(180deg,rgba(255,255,255,.97) 0,rgba(255,255,255,.84) 70%,rgba(255,255,255,.45))}
  .home-page.frontend-template-newspaper .hero-shade{background:linear-gradient(180deg,rgba(243,240,232,.98),rgba(243,240,232,.82))}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .ai-search-showcase{margin-top:34px;padding:22px 18px;border-radius:16px;box-shadow:none}
  .home-page.frontend-template-newspaper .ai-search-showcase{border-radius:0;box-shadow:5px 5px 0 #171717}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .ai-platform-copy h2{font-size:25px;line-height:1.3}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .ai-platform-copy p,.home-page[class*="frontend-template-"]:not(.frontend-template-default) .section-heading p,.home-page[class*="frontend-template-"]:not(.frontend-template-default) .product-copy p{font-size:16px;line-height:1.8}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .section,.home-page[class*="frontend-template-"]:not(.frontend-template-default) .section+.section{width:calc(100% - 32px);padding:52px 0}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .section-heading h2{font-size:34px;line-height:1.3}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .product-feature,.home-page[class*="frontend-template-"]:not(.frontend-template-default) .product-pair .product-feature{padding:25px 20px;border-radius:18px}
  .home-page.frontend-template-newspaper .product-feature,.home-page.frontend-template-newspaper .product-pair .product-feature{border-radius:0}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .product-copy h3{font-size:29px;line-height:1.35}
}
@media(max-width:390px){
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero h1{font-size:38px!important}
  .home-page[class*="frontend-template-"]:not(.frontend-template-default) .hero-content>p{font-size:16px}
}
