:root{--c-primary:#1f5fb0;--font:'Microsoft YaHei','PingFang SC',sans-serif;}
/* ============ 康恩制药集团 胶囊造型风 ============ */
:root {
  --blue:#1f5fb0;
  --blue-d:#174a8c;
  --white:#f6faff;
  --cyan:#38b2ac;
  --dark:#12304f;
  --text:#4a5f74;
  --line:#dbe7f5;
  --shadow:0 16px 38px rgba(31,95,176,.15);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; color:var(--text); background:var(--white); overflow-x:hidden; font-size:17px; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* ---------- 导航 ---------- */
.site-header { position:fixed; top:0; left:0; right:0; z-index:999; background:rgba(246,250,255,.95); backdrop-filter:blur(10px); box-shadow:0 2px 12px rgba(31,95,176,.12); }
.nav-wrap { display:flex; align-items:center; justify-content:space-between; height:78px; }
.logo { display:flex; align-items:center; gap:12px; }
.logo-pill { width:46px; height:46px; border-radius:23px; background:linear-gradient(90deg,var(--blue) 50%,var(--cyan) 50%); position:relative; box-shadow:0 6px 16px rgba(31,95,176,.3); }
.logo-pill::after { content:""; position:absolute; top:20px; left:0; right:0; height:6px; background:rgba(255,255,255,.55); }
.logo-text { font-weight:800; font-size:22px; color:var(--dark); display:flex; flex-direction:column; line-height:1.15; }
.logo-text span { font-size:11px; font-weight:500; color:var(--cyan); letter-spacing:2px; }
.main-nav { display:flex; gap:6px; }
.main-nav a { padding:11px 17px; border-radius:999px; font-size:16px; font-weight:600; color:var(--dark); transition:.3s; }
.main-nav a:hover { color:var(--blue); background:#e9f2fd; }
.main-nav a.active { color:#fff; background:linear-gradient(90deg,var(--blue),var(--cyan)); box-shadow:0 8px 18px rgba(31,95,176,.3); }
.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span { width:26px; height:3px; background:var(--dark); border-radius:2px; transition:.3s; }

/* ---------- 泡罩/药板背景 ---------- */
.blister-bg { position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(circle at 50% 28%, rgba(255,255,255,.5) 0 22%, rgba(255,255,255,0) 23%), radial-gradient(circle at 50% 74%, rgba(255,255,255,.28) 0 20%, rgba(255,255,255,0) 21%); background-size:150px 200px; }

/* ---------- Hero ---------- */
.hero { position:relative; padding:170px 0 110px; background:linear-gradient(150deg,#e8f1fc 0%,var(--white) 50%,#dff2f1 100%); overflow:hidden; }
.hero-pills { position:absolute; inset:0; pointer-events:none; }
.gpill { position:absolute; border-radius:999px; opacity:.14; transform:rotate(24deg); }
.gpill::after { content:""; position:absolute; top:20%; left:0; right:0; height:12%; background:rgba(255,255,255,.6); border-radius:999px; }
.gpill-a { width:120px; height:300px; background:var(--blue); left:-50px; bottom:40px; }
.gpill-b { width:90px; height:230px; background:var(--cyan); right:8%; top:90px; transform:rotate(-18deg); }
.gpill-c { width:70px; height:180px; background:var(--blue); right:-30px; bottom:80px; transform:rotate(40deg); }
.hero-inner { position:relative; display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:center; }
.hero-capsule { display:flex; justify-content:center; }
.capsule-cap { width:230px; height:470px; border-radius:115px; background:linear-gradient(180deg,#2b7cd0 0%,var(--blue) 48%,#2f9d8f 100%); position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:inset -26px 0 50px rgba(0,0,0,.14), inset 26px 0 36px rgba(255,255,255,.28), 0 34px 60px rgba(31,95,176,.42); animation:pillFloat 5s ease-in-out infinite; }
.capsule-cap::before { content:""; position:absolute; top:0; left:0; right:0; height:50%; border-radius:115px 115px 0 0; background:rgba(255,255,255,.16); }
.capsule-cap::after { content:""; position:absolute; top:50%; left:0; right:0; height:34px; background:rgba(255,255,255,.5); transform:translateY(-50%); box-shadow:0 8px 18px rgba(0,0,0,.08); }
.cap-seal { width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.22); border:3px solid rgba(255,255,255,.75); margin-bottom:16px; }
.capsule-cap b { color:#fff; font-size:14px; letter-spacing:3px; font-weight:600; margin-bottom:6px; position:relative; }
.capsule-cap strong { color:#fff; font-size:26px; letter-spacing:4px; font-weight:800; position:relative; }
@keyframes pillFloat { 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }
.hero-tag { display:inline-block; padding:9px 22px; background:#fff; border-radius:999px; font-size:15px; color:var(--blue); font-weight:700; box-shadow:0 6px 18px rgba(31,95,176,.16); margin-bottom:24px; }
.hero h1 { font-size:46px; line-height:1.35; color:var(--dark); font-weight:800; margin-bottom:22px; }
.hero h1 span { color:var(--cyan); position:relative; }
.hero h1 span::after { content:""; position:absolute; left:0; right:0; bottom:4px; height:12px; background:rgba(56,178,172,.22); border-radius:4px; z-index:-1; }
.hero-text p { font-size:18px; line-height:2; margin-bottom:32px; max-width:560px; }
.hero-actions { display:flex; gap:16px; }
.btn { display:inline-block; padding:15px 34px; border-radius:999px; font-weight:700; font-size:17px; transition:.3s; border:1px solid transparent; cursor:pointer; }
.btn-primary { background:linear-gradient(90deg,var(--blue),var(--cyan)); color:#fff; box-shadow:0 10px 24px rgba(31,95,176,.34); }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 16px 30px rgba(31,95,176,.42); }
.btn-outline { background:transparent; color:var(--blue); border-color:var(--blue); }
.btn-outline:hover { background:var(--blue); color:#fff; }
.btn-light { background:#fff; color:var(--blue); box-shadow:0 10px 24px rgba(0,0,0,.1); }
.btn-outline-light { background:transparent; border:1px solid rgba(255,255,255,.8); color:#fff; }
.btn-block { display:block; width:100%; text-align:center; }
.hero-stats { display:flex; gap:40px; margin-top:36px; }
.h-stat b { display:block; font-size:30px; color:var(--blue); font-weight:800; }
.h-stat span { font-size:15px; color:var(--text); opacity:.9; }

/* ---------- 胶囊分隔线 ---------- */
.pill-divider { display:flex; align-items:center; gap:16px; max-width:900px; margin:0 auto; padding:0 24px; }
.pill-divider i { height:4px; flex:1; background:linear-gradient(90deg,transparent,var(--cyan)); border-radius:4px; }
.pill-divider i:last-child { background:linear-gradient(90deg,var(--cyan),transparent); }
.pill-divider span { width:70px; height:26px; border-radius:13px; background:linear-gradient(90deg,var(--blue),var(--cyan)); box-shadow:0 4px 12px rgba(31,95,176,.3); flex:0 0 70px; position:relative; }
.pill-divider span::after { content:""; position:absolute; top:11px; left:0; right:0; height:4px; background:rgba(255,255,255,.7); }
.pill-divider-dark { background:linear-gradient(180deg,var(--bg2,#fff),#fff); }
.pill-divider-dark i { background:linear-gradient(90deg,transparent,#cfe0f2); }
.pill-divider-dark i:last-child { background:linear-gradient(90deg,#cfe0f2,transparent); }

/* ---------- 通用 Section ---------- */
.section { padding:96px 0; }
.section-head { text-align:center; max-width:680px; margin:0 auto 56px; }
.kicker { display:inline-block; font-size:15px; font-weight:700; letter-spacing:3px; color:var(--cyan); margin-bottom:14px; }
.section-head h2 { font-size:40px; font-weight:800; color:var(--dark); margin-bottom:16px; line-height:1.35; }
.section-head h2 span { color:var(--blue); }
.section-head p { font-size:17px; color:var(--text); opacity:.9; }

/* ---------- 制药实力 ---------- */
.strength { background:linear-gradient(180deg,#fff,var(--white)); }
.strength-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.pill-feat { display:flex; align-items:center; gap:20px; background:#fff; border-radius:999px; padding:26px 34px; box-shadow:var(--shadow); transition:.35s; }
.pill-feat:hover { transform:translateY(-6px); }
.pf-ic { flex:0 0 68px; width:68px; height:68px; border-radius:50%; background:linear-gradient(135deg,#e3eefc,#d9f1ef); display:flex; align-items:center; justify-content:center; font-size:32px; }
.pill-feat h3 { font-size:20px; color:var(--dark); margin-bottom:8px; }
.pill-feat p { font-size:15px; line-height:1.8; opacity:.88; }
.strength-ribbon { display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-top:44px; background:linear-gradient(90deg,var(--blue),var(--cyan)); border-radius:999px; padding:22px 40px; color:#fff; box-shadow:0 14px 30px rgba(31,95,176,.32); }
.strength-ribbon span { font-size:16px; }
.strength-ribbon b { font-size:24px; margin-left:6px; }

/* ---------- 药品管线 ---------- */
.pipeline { background:#fff; }
.drug-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.drug-card { background:var(--white); border-radius:34px; overflow:hidden; box-shadow:var(--shadow); transition:.35s; display:flex; flex-direction:column; }
.drug-card:hover { transform:translateY(-8px); }
.drug-cap { position:relative; height:190px; }
.drug-cap img { width:100%; height:100%; object-fit:cover; }
.drug-cap::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(31,95,176,.05),rgba(31,95,176,.4)); }
.drug-cap.ring-blue::after, .drug-cap.ring-cyan::after { content:""; position:absolute; top:-40px; left:50%; transform:translateX(-50%); width:110px; height:110px; border-radius:50%; background:var(--white); border:14px solid var(--blue); z-index:2; }
.drug-cap.ring-cyan::after { border-color:var(--cyan); }
.drug-badge { position:absolute; top:16px; left:16px; z-index:3; background:#fff; color:var(--blue); font-size:13px; font-weight:800; padding:7px 18px; border-radius:999px; box-shadow:0 6px 14px rgba(0,0,0,.18); }
.drug-body { padding:30px 26px 32px; display:flex; flex-direction:column; flex:1; }
.drug-no { align-self:flex-start; font-size:12px; font-weight:800; color:var(--blue); border:1px solid var(--blue); padding:5px 12px; border-radius:6px; margin-bottom:14px; letter-spacing:1px; }
.drug-body h3 { font-size:20px; color:var(--dark); margin-bottom:12px; }
.drug-body p { font-size:15px; line-height:1.9; opacity:.88; }
.center-btn { text-align:center; margin-top:46px; }

/* ---------- 质量标准 ---------- */
.quality { background:linear-gradient(180deg,#fff,var(--white)); }
.qual-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.qual-step { text-align:center; }
.qs-no { display:inline-flex; width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--cyan)); color:#fff; font-weight:800; font-size:20px; align-items:center; justify-content:center; margin-bottom:18px; box-shadow:0 10px 22px rgba(31,95,176,.3); }
.qs-pill { background:#fff; border:3px solid var(--line); border-radius:999px; padding:14px 20px; margin-bottom:16px; }
.qs-pill b { font-size:19px; color:var(--dark); }
.qual-step p { font-size:15px; line-height:1.9; opacity:.9; }

/* ---------- 新闻 ---------- */
.news { background:#fff; }
.news-row { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.news-card { background:var(--white); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); transition:.35s; }
.news-card:hover { transform:translateY(-6px); }
.news-card img { width:100%; height:200px; object-fit:cover; }
.news-body { padding:26px; }
.news-body time { font-size:14px; color:var(--cyan); font-weight:700; }
.news-body h3 { font-size:19px; color:var(--dark); margin:12px 0; line-height:1.6; }
.news-body p { font-size:15px; line-height:1.9; opacity:.88; }

/* ---------- CTA ---------- */
.cta-capsule { background:linear-gradient(90deg,var(--blue),#2f8bb4 60%,var(--cyan)); border-radius:999px; padding:64px 90px; text-align:center; color:#fff; position:relative; overflow:hidden; box-shadow:0 24px 50px rgba(31,95,176,.35); }
.cta-cap { position:absolute; border-radius:999px; background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.22); }
.cta-cap.c1 { width:90px; height:230px; left:-20px; bottom:-80px; transform:rotate(30deg); }
.cta-cap.c2 { width:60px; height:160px; right:6%; top:-60px; transform:rotate(-20deg); }
.cta-cap.c3 { width:40px; height:110px; right:-15px; bottom:10px; transform:rotate(40deg); }
.cta-capsule h2 { font-size:34px; font-weight:800; margin-bottom:16px; position:relative; }
.cta-capsule p { font-size:17px; opacity:.95; margin-bottom:32px; position:relative; }
.cta-actions { display:flex; gap:16px; justify-content:center; position:relative; }

/* ---------- 页脚 ---------- */
.site-footer { background:var(--dark); color:#c9d8e8; padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:40px; padding-bottom:36px; }
.footer-brand h3 { font-size:21px; color:#fff; margin-bottom:14px; }
.footer-brand p { font-size:16px; line-height:1.9; opacity:.85; }
.footer-links h4 { font-size:17px; color:#fff; margin-bottom:16px; }
.footer-links a { display:block; font-size:16px; padding:7px 0; opacity:.85; transition:.3s; }
.footer-links a:hover { color:#8fd7d3; padding-left:6px; }
.footer-links p { font-size:16px; padding:5px 0; opacity:.85; line-height:1.8; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); padding:20px 0; text-align:center; font-size:14px; opacity:.75; }

/* ---------- 内页 ---------- */
.page-hero { position:relative; padding:170px 0 80px; text-align:center; background:linear-gradient(160deg,#e8f1fc,var(--white)); overflow:hidden; }
.page-hero .container { position:relative; }
.page-hero .kicker { color:var(--cyan); }
.page-hero h1 { font-size:44px; color:var(--dark); font-weight:800; margin:8px 0 16px; }
.page-hero h1 span { color:var(--blue); }
.page-hero p { font-size:18px; color:var(--text); opacity:.9; }

/* about */
.about-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:56px; align-items:center; }
.about-imgs { position:relative; }
.about-imgs img { width:100%; height:430px; object-fit:cover; border-radius:999px 999px 26px 26px; box-shadow:var(--shadow); }
.about-cap { position:absolute; left:50%; bottom:-18px; transform:translateX(-50%); background:#fff; border-radius:999px; padding:12px 26px; box-shadow:var(--shadow); display:flex; align-items:center; gap:10px; white-space:nowrap; }
.about-cap b { font-size:15px; color:var(--dark); }
.about-pill { width:22px; height:22px; border-radius:11px; background:linear-gradient(90deg,var(--blue) 50%,var(--cyan) 50%); }
.about-text h2 { font-size:32px; color:var(--dark); margin-bottom:18px; }
.about-text h2 span { color:var(--blue); }
.about-text p { font-size:17px; line-height:2; margin-bottom:16px; }
.drug-label { background:#fff; border:2px dashed rgba(31,95,176,.4); border-radius:20px; padding:22px 26px; margin-top:16px; }
.drug-label .drug-no { display:inline-block; margin-bottom:10px; }
.drug-label p { margin:0; font-size:15px; color:var(--text); font-style:italic; }

/* timeline */
.timeline { max-width:760px; margin:0 auto; position:relative; }
.timeline::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:4px; background:linear-gradient(var(--blue),var(--cyan)); border-radius:4px; transform:translateX(-50%); }
.tl-item { display:flex; align-items:center; justify-content:space-between; gap:40px; padding:18px 0; position:relative; }
.tl-item:nth-child(even) { flex-direction:row-reverse; }
.tl-pill { flex:0 0 130px; text-align:center; background:linear-gradient(90deg,var(--blue),var(--cyan)); color:#fff; font-weight:800; font-size:17px; padding:14px 10px; border-radius:999px; box-shadow:0 8px 20px rgba(31,95,176,.3); z-index:1; }
.tl-item div { flex:1; background:#fff; border-radius:18px; padding:20px 24px; box-shadow:var(--shadow); }
.tl-item div h3 { font-size:18px; color:var(--dark); margin-bottom:8px; }
.tl-item div p { font-size:15px; line-height:1.8; opacity:.88; }

/* products 在研管线 */
.rnd-list { max-width:900px; margin:0 auto; }
.rnd-item { display:grid; grid-template-columns:150px 1fr 180px; gap:20px; align-items:center; background:#fff; border-radius:999px; padding:22px 34px; box-shadow:var(--shadow); margin-bottom:20px; }
.rnd-item h3 { font-size:18px; color:var(--dark); margin-bottom:6px; }
.rnd-item div p { font-size:15px; line-height:1.8; opacity:.88; }
.rnd-stage { text-align:center; font-size:14px; font-weight:800; padding:10px 0; border-radius:999px; }
.stage-1 { background:#ffe9e0; color:#c25a2a; }
.stage-2 { background:#e5f2ff; color:var(--blue); }
.stage-3 { background:#e0f5f3; color:#1f8f89; }
.rnd-prog { height:12px; background:var(--line); border-radius:6px; overflow:hidden; }
.rnd-prog i { display:block; height:100%; background:linear-gradient(90deg,var(--blue),var(--cyan)); border-radius:6px; }

/* news 列表 */
.news-list { max-width:940px; margin:0 auto; }
.news-item { display:grid; grid-template-columns:260px 1fr; gap:26px; background:#fff; border-radius:26px; overflow:hidden; box-shadow:var(--shadow); margin-bottom:26px; transition:.35s; }
.news-item:hover { transform:translateY(-5px); }
.news-item img { width:100%; height:100%; min-height:180px; object-fit:cover; }
.ni-body { padding:28px 30px; }
.ni-body time { font-size:14px; color:var(--cyan); font-weight:700; }
.ni-body h3 { font-size:20px; color:var(--dark); margin:12px 0; line-height:1.5; }
.ni-body p { font-size:15px; line-height:1.9; opacity:.88; }

/* contact */
.contact-wrap { display:grid; grid-template-columns:1fr 1.15fr; gap:50px; align-items:start; }
.ct-card { display:flex; gap:16px; padding:20px; background:#fff; border-radius:24px; box-shadow:var(--shadow); margin-bottom:18px; }
.ct-pill { width:56px; height:56px; border-radius:28px; background:linear-gradient(135deg,#e3eefc,#d9f1ef); display:flex; align-items:center; justify-content:center; font-size:24px; flex:0 0 56px; }
.ct-card h4 { font-size:18px; color:var(--dark); margin-bottom:6px; }
.ct-card p { font-size:15px; opacity:.9; line-height:1.7; }
.map-box { border-radius:24px; overflow:hidden; box-shadow:var(--shadow); }
.map-box img { width:100%; height:220px; object-fit:cover; }
.form-box { background:#fff; border-radius:34px; padding:40px; box-shadow:var(--shadow); }
.form-box h3 { font-size:24px; color:var(--dark); margin-bottom:26px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field { margin-bottom:18px; }
.form-field label { display:block; font-size:15px; font-weight:700; color:var(--dark); margin-bottom:8px; }
.form-field input,.form-field select,.form-field textarea { width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:14px; font-size:15px; font-family:inherit; background:#f7faff; transition:.3s; outline:none; }
.form-field textarea { min-height:120px; resize:vertical; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color:var(--cyan); box-shadow:0 0 0 3px rgba(56,178,172,.14); background:#fff; }
.form-field.full { grid-column:span 2; }
.form-error { color:#e0485a; font-size:14px; margin-top:6px; display:none; }
.form-field.error input,.form-field.error textarea,.form-field.error select { border-color:#e0485a; }
.form-field.error .form-error { display:block; }
.form-success { display:none; text-align:center; padding:30px 0; color:var(--blue); font-size:18px; font-weight:700; }
.form-success .ok-icon { font-size:52px; display:block; margin-bottom:12px; }

/* reveal */
.reveal { opacity:0; transform:translateY(34px); transition:opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ---------- 响应式 ---------- */
@media (max-width:992px){
  .hero-inner { grid-template-columns:1fr; text-align:center; }
  .hero-capsule { order:-1; }
  .hero-text p { margin:0 auto 32px; }
  .hero-actions { justify-content:center; }
  .hero-stats { justify-content:center; }
  .drug-grid,.news-row { grid-template-columns:repeat(2,1fr); }
  .strength-grid { grid-template-columns:1fr; }
  .qual-grid { grid-template-columns:repeat(2,1fr); }
  .contact-wrap,.about-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .rnd-item { grid-template-columns:130px 1fr; }
  .rnd-prog { grid-column:span 2; }
  .timeline::before { left:30px; }
  .tl-item,.tl-item:nth-child(even) { flex-direction:row; }
  .tl-item div { margin-left:20px; }
}
@media (max-width:768px){
  .main-nav { position:fixed; top:78px; left:0; right:0; background:#fff; flex-direction:column; padding:18px 24px 26px; gap:10px; box-shadow:0 16px 30px rgba(0,0,0,.12); transform:translateY(-140%); transition:.4s; }
  .main-nav.open { transform:none; }
  .nav-toggle { display:flex; }
  .hero { padding:140px 0 90px; }
  .hero h1 { font-size:34px; }
  .capsule-cap { width:170px; height:350px; border-radius:85px; }
  .capsule-cap strong { font-size:20px; }
  .strength-ribbon { border-radius:26px; justify-content:center; }
  .drug-grid,.news-row,.qual-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .form-field.full { grid-column:span 1; }
  .footer-grid { grid-template-columns:1fr; }
  .cta-capsule { padding:48px 24px; border-radius:40px; }
  .section { padding:70px 0; }
  .section-head h2 { font-size:30px; }
  .hero-stats { gap:22px; }
  .news-item { grid-template-columns:1fr; }
  .news-item img { height:190px; }
  .rnd-item { grid-template-columns:1fr; padding:22px 26px; border-radius:24px; }
  .rnd-prog { grid-column:span 1; }
}


/* ===== CMS 表单提交反馈 ===== */
.form-success.show { display:block; }
.form-alert { padding:14px 18px; border-radius:10px; margin-bottom:20px; font-size:14px; line-height:1.8; }
.form-alert-err { background:rgba(192,57,43,.08); border:1px solid #c0392b; color:#c0392b; }
.form-success.show { padding:14px 18px; border-radius:10px; margin-bottom:20px; background:rgba(39,174,96,.1); border:1px solid #27ae60; color:#27ae60; }
