/* Xianzhe Rare Earth — independent brand direction */
:root{
  --navy:#0b1722;
  --blue:#2259d6;
  --ink:#101a26;
  --gray:#d7dde4;
  --cool:#f3f5f7;
  --line:#dce2e8;
  --white:#fff;
  --muted:#657384;
}
html{scroll-padding-top:84px}
body{background:#f4f6f8;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.container{max-width:1380px;padding-left:58px;padding-right:58px}
section{padding:clamp(82px,8vw,122px) 0}
.section-head{max-width:820px;margin-bottom:52px}
.eyebrow{font-size:10px;letter-spacing:.24em;font-weight:700;margin-bottom:17px}
.section-head h2{font-size:clamp(32px,3.25vw,46px);line-height:1.2;letter-spacing:-1.2px;font-weight:650}
.section-head p{font-size:15px;line-height:1.85;margin-top:16px;color:#697787}

/* Calm, compact navigation */
.nav{background:rgba(250,251,252,.93);backdrop-filter:blur(18px);border-bottom:1px solid rgba(16,26,38,.08)}
.nav-in{height:76px}
.brand{align-items:center;gap:13px}
.brand .cn{font-size:21px;letter-spacing:.04em}
.brand .en{font-size:9px;letter-spacing:.19em;color:#7a8795}
.nav-links{gap:clamp(22px,3vw,44px)}
.nav-links a{font-size:13px;font-weight:550;position:relative}
.nav-links a:after{content:"";position:absolute;left:0;right:100%;bottom:-9px;height:1px;background:var(--blue);transition:right .25s}
.nav-links a:hover:after{right:0}
.nav-right{gap:24px}
.btn{border-radius:3px;padding:12px 22px;font-size:12px;letter-spacing:.015em}
.btn-solid{background:#1d5bd7;border-color:#1d5bd7}
.btn-solid:hover{background:#1749b4;border-color:#1749b4}

/* Image-led hero with a single clear message; Unsplash photo by TECNIC Bioprocess Solutions, licensed under Unsplash License */
.hero{min-height:90vh;padding:150px 0 104px;background:#eef2f5}
.hero-bg .slide{background-image:url("https://images.unsplash.com/photo-1766434773134-a931fa4ea35e?auto=format&fit=crop&w=2400&q=85")!important;background-position:center 48%;filter:saturate(.78) brightness(1.04);transform:scale(1.04)}
.hero-bg .slide.active{transform:scale(1)}
.hero-bg:after{background:linear-gradient(90deg,rgba(248,250,252,.94) 0%,rgba(248,250,252,.84) 48%,rgba(248,250,252,.52) 100%),linear-gradient(0deg,rgba(238,243,248,.22),transparent 58%)}
.hero .container{padding-right:430px}
.hero .eyebrow{color:#2259d6;font-size:10px;letter-spacing:.25em}
.hero h1{max-width:17em;font-size:clamp(38px,3.8vw,54px);font-weight:650;line-height:1.2;letter-spacing:-1.6px;color:#101a26}
.hero h1 em{color:#2259d6}
.hero-sub{max-width:570px;margin-top:24px;color:#4c5c6e;font-size:15px;line-height:1.9}
.hero-actions{margin-top:34px}
.hero .btn{padding:14px 25px}
.hero-visual{right:clamp(52px,8vw,128px);width:310px;padding:22px 24px;border:1px solid rgba(30,63,102,.12);border-radius:4px;color:#101a26;background:rgba(255,255,255,.78);box-shadow:0 22px 60px rgba(17,39,66,.12);backdrop-filter:blur(16px)}
.hero-visual .visual-title{color:#66778a;font-size:9px;letter-spacing:.2em}
.visual-row{border-color:rgba(16,26,38,.12);color:#344252;font-size:12px}
.visual-row svg{color:#3978cf}
.visual-row b{color:#3978cf}

/* Applications strip */
.marquee{padding:24px 0;background:#101d2a;border:0}
.marquee-track{gap:52px}
.marquee span{font-size:12px;color:#e3e9f0;letter-spacing:.04em;padding-left:36px}
.marquee span:before{width:5px;height:5px;background:#8db5ff}

/* Product gallery */
#product{background:#f4f6f8}
#product .section-head{max-width:900px}
#product .section-head h2{max-width:18em}
.product-layout{gap:14px}
.product-feature-row{grid-template-columns:2fr repeat(4,minmax(0,1fr));grid-auto-rows:268px;gap:14px}
.product-secondary-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:184px;gap:14px}
#product .product-card{border:1px solid #e2e7ec;border-radius:5px;background:#edf1f5;box-shadow:0 8px 24px rgba(12,28,45,.035);transition:transform .3s,border-color .3s,box-shadow .3s}
#product .product-card:hover{transform:translateY(-3px);border-color:#c4d4ed;box-shadow:0 16px 32px rgba(12,28,45,.09)}
#product .product-card img{transition:transform .7s cubic-bezier(.2,.65,.3,1)}
#product .product-card:hover img{transform:scale(1.035)}
#product .product-feature-row .featured img{position:absolute;top:0;right:0;width:67%;height:100%;object-fit:contain;object-position:center;background:transparent}
#product .product-feature-row .top-card img,#product .product-secondary-grid .small-card img{position:absolute;top:0;right:-2%;width:72%;height:100%;object-fit:contain;object-position:center;background:transparent}
#product .product-card .mask{background:linear-gradient(90deg,#f5f7f9 0%,rgba(245,247,249,.96) 34%,rgba(245,247,249,.42) 63%,rgba(245,247,249,0) 100%)}
#product .product-feature-row .featured .mask{background:linear-gradient(90deg,#edf1f5 0%,rgba(237,241,245,.97) 34%,rgba(237,241,245,.42) 62%,rgba(237,241,245,0) 100%)}
#product .product-card .info{left:24px;right:47%;bottom:24px;color:#111c29}
#product .product-card .info .tag{font-size:9px;letter-spacing:.12em;color:#4775bd;line-height:1.45;margin-bottom:10px}
#product .product-card .info h3{font-size:21px;letter-spacing:-.025em;color:#111c29}
#product .product-feature-row .featured .info{left:30px;right:47%;bottom:30px}
#product .product-feature-row .featured .info h3{font-size:32px}
#product .product-card .info p{color:#546476;font-size:11px;line-height:1.55}
#product .product-card:hover .info p{max-height:76px}
#product .product-card .arrow{width:34px;height:34px;top:14px;right:14px;background:rgba(255,255,255,.8);border:1px solid rgba(34,89,214,.2);color:#2259d6;backdrop-filter:blur(8px)}
#product .card-hit:focus-visible{outline-color:#2259d6}
.catalog-panel{border-radius:5px;box-shadow:0 14px 36px rgba(18,32,49,.08)}
.catalog-heading h3{font-size:24px}
.catalog-table th{background:#edf2f7}
.catalog-close{border-radius:3px}

/* Proof points: dark field, simple typographic hierarchy */
.figures{background:#0d1925;color:#fff}
.figures .section-head h2{color:#fff}
.figures .section-head p{color:#aeb9c5}
.fig-grid{gap:0}
.fig-item{padding:26px 24px 8px;border-top:1px solid rgba(255,255,255,.25);border-right:1px solid rgba(255,255,255,.1)}
.fig-item:first-child{padding-left:0}
.fig-item:last-child{border-right:0}
.fig-item .num{font-size:clamp(38px,4vw,54px);font-weight:580;color:#fff}
.fig-item .num i{font-size:17px;color:#9fc1ff;font-weight:550}
.fig-item .num .unit-dark{font-size:clamp(38px,4vw,54px);color:#fff;font-weight:580}
.fig-item h4{margin-top:18px;font-size:13px;color:#f4f6f9}
.fig-item p{font-size:12px;color:#9eaab7}

/* Process and quality */
#process{background:#fff}
.process-grid{gap:14px}
.process-card{padding:14px 14px 22px;border:1px solid #e6e9ed;border-radius:4px;background:#fff;box-shadow:none}
.process-card:hover{transform:translateY(-3px);border-color:#bfd0e8;box-shadow:0 16px 32px rgba(19,43,74,.08)}
.process-card .step{font-size:10px;letter-spacing:.16em;color:#507cc0}
.process-card .img{height:162px;margin:13px 0 18px;border-radius:2px}
.process-card h4{font-size:16px;margin-bottom:7px}
.process-card p{font-size:12px;line-height:1.75;color:#687787}
.cert{background:#f4f6f8}
.cert-wrap{gap:clamp(40px,6vw,84px)}
.cert-img{border-radius:4px;box-shadow:none}
.cert-list{margin-top:28px!important}
.cert-item{padding:20px 0;border-color:#dce2e8}
.cert-item h4{font-size:15px}
.cert-item p{font-size:12px;line-height:1.75;color:#687787}

/* Values and call to action */
.values{background:#0d1925}
.values .section-head h2{color:#fff}
.value-grid{gap:14px}
.value-main,.value-card{border-radius:4px}
.value-main{border:1px solid rgba(149,184,226,.22)}
.value-card{border:1px solid rgba(255,255,255,.1)}
.value-card h4{font-size:17px}
.value-card p{font-size:12px;line-height:1.8;color:#aeb9c5}
.cta{background:#e9eef4;padding:92px 0}
.cta h2{font-size:clamp(34px,4vw,48px);color:#101a26}
.cta p{font-size:14px;color:#637184}
.cta-actions{gap:10px;margin-top:28px}

/* Centered, minimal footer */
footer{padding:64px 0 28px;background:#08131e}
.foot-grid{padding-bottom:34px}
.foot-brand .foot-brand-logo{width:60px;height:60px}
.foot-brand .en{margin-top:14px;font-size:12px;letter-spacing:.16em}
.foot-brand .cn{font-size:15px}
.foot-brand .foot-tagline{font-size:11px;letter-spacing:.08em}
.foot-bottom{margin-top:22px;font-size:10px;color:#778595}

/* Contact page and dialogs share the same restrained system */
.consult-page{min-height:100vh;background:#f3f5f7}
.consult-nav{height:76px;padding:0 clamp(24px,6vw,84px);background:#fbfcfd}
.consult-content{max-width:1200px;padding-top:72px}
.consult-content h1{font-size:clamp(38px,4vw,52px);letter-spacing:-1.4px}
.contact-card,.contact-map{border-radius:4px;box-shadow:none}
.contact-card{background:#fff;border-color:#e1e6eb}
.contact-map{border-color:#e1e6eb}
.contact-map iframe{border-radius:2px}
.sample-dialog{border-radius:7px}
.sample-head{padding:22px 26px 16px}
.sample-field input,.sample-field select{border-radius:3px}
.sample-close{border-radius:3px}
.sample-footer .btn{border-radius:3px}
.back-top{box-shadow:0 10px 30px rgba(17,40,70,.2)}

/* Responsive proportion and readable controls */
@media(max-width:1050px){
  .nav-links{gap:18px}
  .hero .container{padding-right:390px}
  .hero-visual{right:46px;width:290px}
  .product-feature-row{grid-template-columns:1.6fr repeat(4,minmax(0,1fr))}
  .product-secondary-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .fig-item{padding-right:14px;padding-left:14px}
  .process-grid{gap:10px}
}
@media(max-width:760px){
  .container{padding-left:30px;padding-right:30px}
  .nav-in{height:66px}
  .brand .en{display:none}
  .nav-links{gap:13px}
  .nav-links a{font-size:11px}
  .nav-right{gap:12px}
  .nav-right>.btn{padding:9px 12px;font-size:10px}
  .hero{min-height:86vh;padding-top:118px}
  .hero .container{padding-right:330px}
  .hero h1{font-size:48px}
  .hero-visual{right:24px;width:280px;padding:18px}
  .product-feature-row{grid-template-columns:1.35fr repeat(4,minmax(0,1fr));grid-auto-rows:228px;gap:9px}
  .product-secondary-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:160px;gap:9px}
  #product .product-card .info{left:12px;right:46%;bottom:13px}
  #product .product-feature-row .featured .info{left:17px;right:45%;bottom:17px}
  #product .product-card .info h3{font-size:16px}
  #product .product-feature-row .featured .info h3{font-size:25px}
  #product .product-card .info .tag{font-size:8px}
  .fig-grid{grid-template-columns:repeat(2,1fr)}
  .fig-item:nth-child(2){border-right:0}
  .fig-item:nth-child(n+3){margin-top:22px}
  .process-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .container{padding-left:20px;padding-right:20px}
  .nav-links{display:none}
  .hero{min-height:78vh;padding:100px 0 50px;align-items:flex-start}
  .hero .container{padding-right:20px}
  .hero h1{font-size:40px;max-width:10em}
  .hero-sub{font-size:13px;max-width:32em}
  .hero-visual{position:relative;top:auto;right:auto;transform:none;width:auto;margin:28px 20px 0}
  .hero{display:block}
  .hero .container{padding-bottom:0}
  .marquee{padding:18px 0}
  section{padding:66px 0}
  .section-head{margin-bottom:30px}
  .section-head h2{font-size:30px}
  .product-feature-row{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:210px}
  .product-feature-row .featured{grid-column:1/-1}
  .product-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:190px}
  #product .product-feature-row .featured img{width:60%}
  #product .product-card .info{right:48%}
  #product .product-feature-row .featured .info{right:48%}
  .fig-grid{grid-template-columns:1fr 1fr}
  .fig-item .num{font-size:34px}
  .fig-item .num .unit-dark{font-size:34px}
  .process-grid{grid-template-columns:1fr}
  .cert-wrap{grid-template-columns:1fr;gap:30px}
  .value-grid{grid-template-columns:1fr}
  .value-main,.value-card{min-height:250px;height:auto}
  .foot-bottom{justify-content:center;text-align:center}
}
/* English layout refinements: prevent duplicate brand names and clipped copy */
html[lang="en"] .brand .cn,
html[lang="en"] .foot-brand .cn,
html[lang="en"] .consult-brand strong{display:none!important}
html[lang="en"] .foot-brand .en{margin-top:14px}
html[lang="en"] .consult-brand{align-items:center}
html[lang="en"] .value-main>div{width:100%;min-width:0}
html[lang="en"] .value-main h3{white-space:normal;max-width:100%;font-size:clamp(15px,1.2vw,18px);line-height:1.35;overflow-wrap:anywhere}
html[lang="en"] .value-main p{font-size:12px;line-height:1.55;overflow-wrap:anywhere}
html[lang="en"] #product .product-feature-row .top-card .info,
html[lang="en"] #product .product-secondary-grid .small-card .info{left:16px;right:40%;bottom:14px;min-width:0}
html[lang="en"] #product .product-feature-row .top-card .info .tag,
html[lang="en"] #product .product-secondary-grid .small-card .info .tag{font-size:8px;line-height:1.3;letter-spacing:.04em;overflow-wrap:anywhere}
html[lang="en"] #product .product-feature-row .top-card .info h3,
html[lang="en"] #product .product-secondary-grid .small-card .info h3{font-size:13px;line-height:1.2;overflow-wrap:anywhere;hyphens:auto}
html[lang="en"] #product .product-feature-row .top-card .info p,
html[lang="en"] #product .product-secondary-grid .small-card .info p{font-size:9px;line-height:1.35;max-height:0;overflow-wrap:anywhere}
html[lang="en"] #product .product-feature-row .top-card:hover .info p,
html[lang="en"] #product .product-secondary-grid .small-card:hover .info p{max-height:90px}@media(max-width:760px){html[lang="en"] .brand .en{display:inline!important}}
/* Keep the approved bilingual brand lockup visible in English mode */
html[lang="en"] .brand .cn{display:inline!important}
html[lang="en"] .foot-brand .cn{display:block!important}
html[lang="en"] .consult-brand strong{display:inline!important}
.catalog-table td sub{font-size:.72em;line-height:0;vertical-align:sub}

/* Mission cards: align all titles and descriptions on shared horizontal baselines */
.value-main{display:block}
.value-main>div{position:absolute;inset:0;width:auto;min-width:0}
.value-main h3,.value-card h4{position:absolute;top:38%;left:24px;right:24px;margin:0;padding:0;line-height:1.4;text-align:center}
.value-main h3{font-size:clamp(18px,1.3vw,20px);white-space:normal;overflow-wrap:anywhere}
.value-card h4{font-size:18px}
.value-main p,.value-card p{position:absolute;top:calc(38% + 52px);left:24px;right:24px;margin:0;max-width:none;text-align:center;font-size:13.5px;line-height:1.65;overflow-wrap:anywhere}
html[lang="en"] .value-main h3{font-size:clamp(15px,1.05vw,17px);line-height:1.4;white-space:normal;overflow-wrap:anywhere}
html[lang="en"] .value-card h4{font-size:17px;line-height:1.4}
html[lang="en"] .value-main p,html[lang="en"] .value-card p{font-size:12px;line-height:1.55}
@media(max-width:1050px) and (min-width:601px){
  .value-main h3,.value-card h4{top:34%}
  .value-main p,.value-card p{top:calc(34% + 50px)}
  .value-main h3{font-size:16px}
  .value-card h4{font-size:16px}
  .value-main p,.value-card p{font-size:12px;line-height:1.5}
}
@media(max-width:600px){
  .value-main{display:flex;justify-content:center;min-height:250px}
  .value-main>div{position:relative;inset:auto;width:100%}
  .value-main h3,.value-card h4,.value-main p,.value-card p{position:relative;top:auto;left:auto;right:auto}
  .value-main h3{font-size:20px;line-height:1.35}
  .value-card{display:flex;flex-direction:column;justify-content:center;gap:12px}
  .value-main p,.value-card p{margin:12px auto 0;font-size:13px;line-height:1.65}
}
/* Use the supplied original photo only for the opening homepage slide. */
.hero-bg .slide:first-child{background-image:url("./网页产品图15张/hero-mountain-original.jpg")!important}

