/*
Theme Name: Essense AI 元萃數據
Version: 1.0.0
Requires PHP: 8.0
Description: 官網重建與中文內容欄位編輯器。
*/
/* A chapter index contained entirely inside the company introduction. */
/* Contact heading and section links share one centered alignment. */
body.refined-v27 .contact-redesign .about-masthead{text-align:center}
body.refined-v27 .contact-redesign .about-masthead h1{max-width:none;width:100%;margin:14px auto 18px;text-align:center}
body.refined-v27 .contact-redesign .about-masthead .about-eyebrow,
body.refined-v27 .contact-redesign .about-masthead .about-lead{margin-left:auto;margin-right:auto;text-align:center}
body.refined-v27 .contact-redesign .about-chapter-nav{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;width:100%;margin:28px auto 0;padding:0;border:0;background:transparent!important}
body.refined-v27 .contact-redesign .about-chapter-nav a{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:144px;min-height:46px;padding:11px 20px;line-height:1.5;text-align:center;white-space:nowrap}
body.refined-v27 .contact-redesign .about-chapter-nav a:after{position:static;display:block;flex:none;line-height:1;color:currentColor}
@media(max-width:400px){body.refined-v27 .contact-redesign .about-chapter-nav{gap:8px}body.refined-v27 .contact-redesign .about-chapter-nav a{min-width:0;padding:11px 16px}}
body.refined-v27 .company-redesign .about-masthead{padding-bottom:28px}
body.refined-v27 .company-redesign .about-chapter-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;counter-reset:company-chapter;margin-top:24px;padding:4px;border:1px solid #e1e0e9!important;border-radius:10px;background:#ffffffd9!important;box-shadow:0 8px 28px #23216d05;font-size:14px}
body.refined-v27 .company-redesign .about-chapter-nav a{counter-increment:company-chapter;position:relative;display:grid;grid-template-columns:22px 1fr auto;align-items:center;align-content:center;gap:10px;min-width:0;min-height:58px;padding:12px 18px;border:0;border-radius:10px;color:#34314e;font-weight:500;line-height:1.5;transition:background .2s ease,color .2s ease}
body.refined-v27 .company-redesign .about-chapter-nav a+a{border-left:1px solid #e9e7ef;border-top-left-radius:0;border-bottom-left-radius:0}
body.refined-v27 .company-redesign .about-chapter-nav a:before{content:counter(company-chapter,decimal-leading-zero);grid-column:auto;color:#8b84a4;font:400 11px/1 Arial,sans-serif;letter-spacing:.12em}
body.refined-v27 .company-redesign .about-chapter-nav a:after{content:'↓';position:static;display:grid;place-items:center;align-self:center;width:24px;height:24px;border:1px solid #e2deed;border-radius:50%;color:#72658f;font:400 13px/1 Arial,sans-serif}
body.refined-v27 .company-redesign .about-chapter-nav a:hover{background:#f0eef7;color:#23216d}
body.refined-v27 .company-redesign .about-chapter-nav a:hover:after{background:#23216d;border-color:#23216d;color:#fff}
body.refined-v27 .company-redesign .about-chapter-nav a:focus-visible{outline:2px solid #6b4fd3;outline-offset:-3px}
@media(max-width:700px){
 body.refined-v27 .company-redesign .about-masthead{padding-bottom:24px}
 body.refined-v27 .company-redesign .about-chapter-nav{grid-template-columns:1fr;margin-top:20px;padding:4px;border-radius:10px}
 body.refined-v27 .company-redesign .about-chapter-nav a{grid-template-columns:22px 1fr auto;gap:10px;min-height:48px;padding:10px 12px;font-size:14px}
 body.refined-v27 .company-redesign .about-chapter-nav a:before{grid-column:auto;align-self:center}
 body.refined-v27 .company-redesign .about-chapter-nav a+a{border-left:0;border-top:1px solid #e9e7ef;border-radius:0}
}
.essense-not-found{display:grid;place-items:center;min-height:580px;padding:80px 24px 96px;text-align:center;background:radial-gradient(ellipse at 50% 30%,#eeedf9 0,transparent 65%),#fafafd}
.essense-not-found__content{width:100%;max-width:620px}
.essense-not-found__code{margin:0;color:#23216d;font:500 clamp(100px,16vw,160px)/1 Arial,sans-serif;letter-spacing:-.07em}
.essense-not-found__eyebrow{margin:22px 0 14px;color:#777499;font:500 11px/1.5 Arial,sans-serif;letter-spacing:.24em}
.essense-not-found h1{margin:0;color:#24233c;font-size:clamp(28px,4vw,36px);line-height:1.5;font-weight:500}
.essense-not-found__description{margin:20px 0 0;color:#747383;font-size:15px;line-height:1.9}
.essense-not-found__actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px 28px;margin-top:32px}
.essense-not-found__home,.essense-not-found__contact{display:inline-flex;align-items:center;justify-content:center;gap:28px;min-height:48px;padding:12px 24px;font-size:14px;line-height:1.6;border-radius:6px}
.essense-not-found__home{background:#23216d;color:#fff;border:1px solid #23216d}
.essense-not-found__home:hover{background:#39368d;color:#fff}
.essense-not-found__contact{color:#39365d;border:1px solid #d9d7e6;background:#ffffff80}
.essense-not-found__contact:hover{background:#efedf8;color:#23216d}
@media(max-width:600px){.essense-not-found{min-height:520px;padding:64px 20px}.essense-not-found__description{font-size:14px}.essense-not-found__actions{gap:12px}}
.nav-item.open>.dropdown{display:block;visibility:visible;opacity:1;pointer-events:auto}html{scroll-behavior:smooth}.admin-bar .site-header{top:32px}
@media(max-width:800px){.header-inner{flex-wrap:wrap}.main-nav{display:block!important;width:100%;overflow:visible}.main-nav>ul{display:flex;flex-wrap:wrap;gap:8px}.nav-item{position:relative}.dropdown{max-width:90vw}.brand img{max-width:160px}}

.essense-carousel>.hero[hidden]{display:none!important}
body.refined-v27:has(.ap-home) .essense-carousel>.hero[hidden]{display:none!important}
/* Full-width artwork and overlapping slides keep the page steady during fades. */
.essense-carousel:not(.is-ready)>.hero:not(:first-child){display:none!important}
.essense-carousel.is-ready{display:grid;isolation:isolate;background:#f5f5f7}
.essense-carousel.is-ready>.hero{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .6s ease,visibility 0s .6s}
.essense-carousel.is-ready>.hero.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1;transition:opacity .6s ease,visibility 0s}
body.refined-v27:has(.ap-home) .essense-carousel .hero .hero-image{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:2060/763!important;object-fit:cover!important;object-position:center!important;border-radius:0}
body.refined-v27:has(.ap-home) .essense-carousel>.hero-controls{grid-area:2/1;display:flex;justify-content:space-between;align-items:center;position:static!important;transform:none!important;width:min(1200px,calc(100% - 64px))!important;margin:0 auto!important;padding:0 0 24px;z-index:2}
@media(max-width:700px){
 body.refined-v27:has(.ap-home) .essense-carousel .hero .hero-image{aspect-ratio:2/1!important;object-position:center!important}
 body.refined-v27:has(.ap-home) .essense-carousel>.hero-controls{width:calc(100% - 32px)!important;padding-bottom:20px}
}
@media(prefers-reduced-motion:reduce){.essense-carousel.is-ready>.hero{transition:none!important}}

/* Language navigation stays visible in both desktop and mobile headers. */
.language-switcher{display:flex;align-items:center;gap:7px;flex-shrink:0;font-size:13px;white-space:nowrap}
.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:44px;color:#737078}
.language-switcher a[aria-current="true"]{color:#0066cc;font-weight:700;text-decoration:underline;text-underline-offset:5px}
.language-switcher>span{color:#d1cbd7}
body.refined-v27 .header-inner{gap:22px}
body.refined-v27 .site-header .brand img{width:124px;height:43px;object-fit:contain}
@media(max-width:800px){body.refined-v27 .site-header .brand img{width:112px;height:40px}}
body.refined-v27 .main-nav>ul{gap:30px}
@media(min-width:1101px){
 body.refined-v27 .header-inner{justify-content:flex-end}
 body.refined-v27 .brand{margin-right:auto;flex-shrink:0}
 body.refined-v27 .main-nav{flex-shrink:0}
 html[lang="en"] body.refined-v27 .main-nav>ul{gap:20px}
}
html[lang="en"] body{font-family:Arial,Helvetica,sans-serif}
html[lang="en"] .nav-toggle{font-size:13px;letter-spacing:0}
@media(min-width:1101px){
 html[lang="en"] body.refined-v27 .main-nav>ul{gap:24px}
 html[lang="en"] body.refined-v27 .main-nav>ul>.nav-item{min-width:0}
 html[lang="en"] body.refined-v27 .main-nav>ul>.nav-item>.nav-toggle{width:auto;min-width:0;height:76px;min-height:0;padding:0;white-space:nowrap;text-align:center;font-size:13px;line-height:1.45;gap:8px;align-items:center;justify-content:center}
 html[lang="en"] body.refined-v27 .nav-toggle>.chevron{flex-shrink:0;margin-top:0}
}
html[lang="en"] .dropdown a,html[lang="en"] .branch-toggle{white-space:normal;min-width:210px}
html[lang="en"] .hero h1{font-size:clamp(30px,3.3vw,48px);line-height:1.16;letter-spacing:-.02em}
html[lang="en"] .hero-copy{line-height:1.6}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3{overflow-wrap:break-word}
@media(max-width:1100px){
 body.refined-v27 .site-header{height:76px}
 body.refined-v27 .header-inner{flex-wrap:nowrap;gap:10px}
 body.refined-v27 .brand{margin-right:auto;flex-shrink:0}
 body.refined-v27 .menu-toggle{display:block;padding:8px}
 body.refined-v27 .main-nav{display:none!important;position:absolute;top:76px;left:0;right:0;width:100%;max-height:calc(100dvh - 76px);overflow:auto;background:white;border-bottom:1px solid #e5dfeb;padding:10px 24px 25px;box-shadow:0 10px 15px #00000008}
 body.refined-v27 .main-nav.mobile-open{display:block!important}
 body.refined-v27 .main-nav>ul{display:block}
 body.refined-v27 .nav-item{border-bottom:1px solid #f0ebf3}
 body.refined-v27 .nav-toggle{padding:14px 0;width:100%;justify-content:space-between;font-size:15px;line-height:1.9}
 body.refined-v27 .dropdown,body.refined-v27 .flyout,body.refined-v27 .nav-item.products .dropdown,body.refined-v27 .nav-item.products .flyout{position:static;box-shadow:none;border:0;border-top:1px solid #f1edf5;width:100%;max-width:none;min-width:0;padding:0 0 10px}
 body.refined-v27 .dropdown a,body.refined-v27 .branch-toggle{white-space:normal;padding:10px 15px;min-width:0}
 body.refined-v27 .flyout a{padding-left:30px}
 body.refined-v27 .branch.open>.flyout{display:block}
}
@media(max-width:800px){
 body.refined-v27 .site-header{height:68px}
 body.refined-v27 .header-inner{width:calc(100% - 32px)}
 body.refined-v27 .main-nav{top:68px;max-height:calc(100dvh - 68px)}
 html[lang="en"] .hero h1{font-size:32px}
 html[lang="en"] .hero-copy{font-size:15px}
}
html[lang="en"] body.refined-v27:has(.ap-home) .hero h1{white-space:normal!important;text-wrap:balance}
html[lang="en"] body.refined-v27:has(.ap-home) .hero .hero-copy{white-space:normal!important}
@media(max-width:700px){
 html[lang="en"] body.refined-v27:has(.ap-home) .hero h1{font-size:28px!important;line-height:1.15!important}
 html[lang="en"] body.refined-v27:has(.ap-home) .hero .actions{flex-wrap:wrap!important}
 html[lang="en"] .ap-introduction h2{font-size:36px}
 html[lang="en"] .ap-product-copy h3{font-size:28px}
}

body.refined-v27:has(.ap-home) .essense-carousel.is-ready>.hero{border-bottom:0}
.ap-home .ap-product{container-type:inline-size}
.ap-home .ap-product-copy>p:not(.ap-eyebrow){max-width:none;text-wrap:pretty}
@media(min-width:701px){
 @container(min-width:520px){
 html:not([lang^="en"]) .ap-home .ap-product-copy>p:not(.ap-eyebrow){font-size:clamp(14px,calc(3cqi - 2px),19px);white-space:nowrap}
 }
}
body.refined-v27:has(.ap-home) .essense-carousel>.hero-controls .slide-buttons button{background:#e8e8ed;border:0;color:#1d1d1f;width:32px;height:32px;border-radius:50%}

/* Contact cards: calm imagery, readable details, and a separate channel strip. */
body.refined-v27 .contact-redesign .about-contact-card{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px;padding:28px;border:1px solid #e5e4ed;border-radius:20px;box-shadow:0 8px 28px #24214905}
body.refined-v27 .contact-redesign .about-contact-visual{height:100%;border:0;border-radius:12px;background:#f6f6fa}
body.refined-v27 .contact-redesign .about-contact-visual>.about-photo{aspect-ratio:4/3;background:#f6f6fa}
body.refined-v27 .contact-redesign .about-contact-visual-label{padding:24px;background:#f6f6fa;border-top:0}
body.refined-v27 .contact-redesign .about-contact-visual-label>p{color:#77718c;letter-spacing:.14em}
body.refined-v27 .contact-redesign .about-contact-visual-label h2{font-size:26px;color:#292540}
body.refined-v27 .contact-redesign .about-contact-visual-label>span{color:#777383}
body.refined-v27 .contact-redesign .about-contact-content{padding:8px 4px;gap:22px}
body.refined-v27 .contact-redesign .about-contact-heading>img{width:140px;height:50px;margin-bottom:20px}
body.refined-v27 .contact-redesign .about-contact-heading h3{font-size:22px;color:#292540;margin-bottom:8px}
body.refined-v27 .contact-redesign .about-contact-heading>p{font-size:14px;color:#777383}
body.refined-v27 .contact-redesign .about-contact-list{padding-top:20px;gap:0;border-color:#eceaf1}
body.refined-v27 .contact-redesign .about-contact-line{padding:12px 0;gap:14px;align-items:flex-start}
body.refined-v27 .contact-redesign .about-contact-line+.about-contact-line{border-top:1px solid #f0eef4}
body.refined-v27 .contact-redesign .about-contact-line>div{min-width:0}
body.refined-v27 .contact-redesign .about-contact-icon{flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#f0edf8;color:#62528c}
body.refined-v27 .contact-redesign .about-contact-line dt{font-size:11px;color:#898391;margin-bottom:5px}
body.refined-v27 .contact-redesign .about-contact-line dd{font-size:15px;color:#363044}
body.refined-v27 .contact-redesign .about-contact-line dd a{color:#363044;text-decoration-thickness:1px;text-underline-offset:4px}
body.refined-v27 .contact-redesign .about-contact-line dd a:hover{text-decoration:underline;color:#62528c}
body.refined-v27 .contact-redesign .about-contact-channels{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:24px;padding-top:24px;border-color:#eceaf1}
body.refined-v27 .contact-redesign .about-channel-intro h4{font-size:18px;color:#292540;margin:8px 0}
body.refined-v27 .contact-redesign .about-channel-intro>p{font-size:13px;color:#777383}
body.refined-v27 .contact-redesign .about-contact-qr-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
body.refined-v27 .contact-redesign .about-contact-qr-grid.one{grid-template-columns:minmax(0,180px);justify-content:end}
body.refined-v27 .contact-redesign .about-contact-qr{min-width:0;width:auto;grid-column:auto;justify-self:stretch;padding:16px 10px;background:#faf9fc;border:1px solid #e8e5ef;border-radius:12px}
body.refined-v27 .contact-redesign .about-contact-qr:hover{background:#f5f2fa;border-color:#b7a9cf;box-shadow:0 4px 12px #35245d08}
body.refined-v27 .contact-redesign .about-contact-qr img{width:96px;height:auto;aspect-ratio:1;max-width:100%;margin:0 auto 12px;border-radius:4px}
body.refined-v27 .contact-redesign .about-contact-qr strong{font-size:12px;color:#363044}
body.refined-v27 .contact-redesign .about-contact-qr>span{font-size:11px;color:#777383;margin-top:5px}
@media(max-width:900px){
 body.refined-v27 .contact-redesign .about-contact-card{gap:24px;padding:24px}
 body.refined-v27 .contact-redesign .about-contact-channels{grid-template-columns:1fr;gap:18px}
 body.refined-v27 .contact-redesign .about-contact-qr-grid.one{justify-content:start}
}
@media(max-width:760px){
 body.refined-v27 .contact-redesign .about-contact-card{grid-template-columns:1fr;padding:18px;gap:24px;border-radius:16px}
 body.refined-v27 .contact-redesign .about-contact-visual{height:auto}
 body.refined-v27 .contact-redesign .about-contact-content{padding:0 2px}
 body.refined-v27 .contact-redesign .about-contact-heading h3{font-size:20px}
 body.refined-v27 .contact-redesign .about-contact-visual-label{padding:20px}
}
@media(max-width:480px){
 body.refined-v27 .contact-redesign .about-contact-qr-grid,
 body.refined-v27 .contact-redesign .about-contact-qr-grid.one{grid-template-columns:1fr}
 body.refined-v27 .contact-redesign .about-contact-qr{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:16px;row-gap:4px;text-align:left;padding:14px;align-items:center}
 body.refined-v27 .contact-redesign .about-contact-qr img{grid-row:1/3;width:76px;margin:0}
 body.refined-v27 .contact-redesign .about-contact-qr strong{align-self:end;font-size:13px}
 body.refined-v27 .contact-redesign .about-contact-qr>span{align-self:start;margin:0;font-size:11px}
}

/* Leadership: separate the cards from the masthead and clarify each profile. */
body.refined-v27 .team-redesign .about-team-section{padding:48px 0 56px}
body.refined-v27 .team-redesign .about-team-grid{gap:24px}
body.refined-v27 .team-redesign .about-leader{--profile-accent:#776497;--profile-tint:#f5f2fa;border:1px solid #e7e4ed!important;border-radius:16px;box-shadow:0 6px 24px #30244306!important;background:#fff}
body.refined-v27 .team-redesign .about-leader.leader-1{--profile-accent:#44818a;--profile-tint:#eff7f7}
body.refined-v27 .team-redesign .about-leader.leader-2{--profile-accent:#937647;--profile-tint:#faf6ef}
body.refined-v27 .team-redesign .about-leader-top{padding:26px 22px 24px;background:linear-gradient(180deg,var(--profile-tint),#fff);border-top:3px solid var(--profile-accent);border-bottom:1px solid #eeecf2}
body.refined-v27 .team-redesign .about-expertise{display:table;margin:0 auto 22px;padding:5px 12px;border:1px solid var(--profile-accent);border-radius:6px;color:var(--profile-accent)!important;font-size:11px;line-height:1.5;letter-spacing:.08em;background:#ffffff80}
body.refined-v27 .team-redesign .team-portrait-clean{width:152px;height:152px;margin-bottom:20px}
body.refined-v27 .team-redesign .about-leader h2{margin:0 0 8px;font-size:27px;line-height:1.4;color:#302a3e}
body.refined-v27 .team-redesign .about-leader h2 small{font-size:14px;color:#86808f}
body.refined-v27 .team-redesign .about-leader-role{font-size:14px;line-height:1.7;color:var(--profile-accent)!important}
body.refined-v27 .team-redesign .about-leader-english{font-size:11px;line-height:1.6;min-height:18px;margin-top:4px;color:#958e9d!important}
html:not([lang^="en"]) body.refined-v27 .team-redesign .about-leader-english{display:none}
body.refined-v27 .team-redesign .about-leader-role{margin:0;min-height:24px}
body.refined-v27 .team-redesign .about-leader-bio{padding:24px;gap:0;align-content:start}
body.refined-v27 .team-redesign .about-leader-bio li{padding:12px 0 12px 14px;font-size:13px;line-height:1.85;color:#625d6e}
body.refined-v27 .team-redesign .about-leader-bio li:first-child{padding-top:0;color:#373041;font-weight:500}
body.refined-v27 .team-redesign .about-leader-bio li+li{border-top:1px solid #f0edf4}
body.refined-v27 .team-redesign .about-leader-bio li:before{top:22px;width:4px;height:4px;background:var(--profile-accent)}
body.refined-v27 .team-redesign .about-leader-bio li:first-child:before{top:10px}
@media(max-width:900px) and (min-width:601px){
 body.refined-v27 .team-redesign .about-team-grid{grid-template-columns:1fr}
 body.refined-v27 .team-redesign .about-leader{display:grid;grid-template-columns:240px minmax(0,1fr)}
 body.refined-v27 .team-redesign .about-leader-top{border-bottom:0;border-right:1px solid #eeecf2}
 body.refined-v27 .team-redesign .about-leader-bio{align-content:center}
}
@media(max-width:600px){
 body.refined-v27 .team-redesign .about-team-section{padding:28px 0 36px}
 body.refined-v27 .team-redesign .about-team-grid{grid-template-columns:1fr;gap:20px}
 body.refined-v27 .team-redesign .about-leader{display:block}
 body.refined-v27 .team-redesign .about-leader-top{padding:22px 20px}
 body.refined-v27 .team-redesign .about-leader-bio{padding:20px 22px}
 body.refined-v27 .team-redesign .about-leader-bio li{font-size:14px}
}
