/* ============================================================
   HALCYON MACHINERY - Apple-style minimalist theme
   - background: white / #f5f5f7
   - text: #1d1d1f (Apple), secondary #6e6e73
   - accent: #0071e3 (Apple blue)
   - font: Inter (SF Pro-like), generous whitespace, big bold type
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-light: #e8f0fe;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: #d2d2d7;
  --green: #34c759; /* apple green, used for WhatsApp only */
  --wa: #25d366;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, "Microsoft Yahei", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }
ul { list-style: none; }
.container { width: min(1150px, 90%); margin: 0 auto; }

/* ---------- Top bar (minimal) ---------- */
.topbar { background: var(--bg-alt); color: var(--text-3); font-size: 13px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--blue); }
.topbar .socials a { margin-left: 12px; color: var(--text-3); }
.topbar .socials a:hover { color: var(--blue); }

/* ---------- Header (Apple: white, clean) ---------- */
.site-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 40px; height: 40px; }
.logo-text { line-height: 1.1; }
.logo-text .name { font-size: 21px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.logo-text .sub { font-size: 10px; color: var(--text-3); letter-spacing: 1.8px; text-transform: uppercase; }

.header-right { display: flex; align-items: center; gap: 16px; }
.btn-pill {
  display: inline-block; padding: 9px 20px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600;
  border: 0; cursor: pointer; transition: background .2s;
}
.btn-pill:hover { background: var(--blue-hover); color: #fff; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 14.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--text); cursor: pointer; }

/* ---------- Hero (Apple: big type, white) ---------- */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 70% -10%, #f0f5fc, transparent 60%); pointer-events: none; }
.slide { display: none; padding: 96px 0 88px; }
.slide.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide .container { position: relative; z-index: 2; text-align: center; }
.slide h1 { font-size: 52px; line-height: 1.08; margin: 0 auto 18px; font-weight: 700; letter-spacing: -1.5px; color: var(--text); max-width: 820px; }
.slide h1 span { color: var(--blue); }
.slide p { font-size: 19px; color: var(--text-2); margin: 0 auto 34px; max-width: 640px; }
.slide .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero .dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #d2d2d7; cursor: pointer; transition: all .2s; }
.hero .dots button.active { background: var(--blue); width: 22px; border-radius: 4px; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 980px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Mission section (Apple style, full first screen) ---------- */
.mission {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 56px 0 230px; /* content sits comfortably in the upper-middle, clear of floating buttons */
}
.mission .container { width: min(800px, 90%); margin: 0 auto; }
.mission-brand { font-size: 15px; font-weight: 600; letter-spacing: 7px; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.mission-tag { font-size: 56px; line-height: 1.06; font-weight: 700; letter-spacing: -2.6px; color: var(--text); margin: 0 auto 18px; max-width: 800px; }
.mission-tag .hl,
.mission-tag span {
  background: linear-gradient(100deg, #0071e3 0%, #2997ff 55%, #6bb6ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 开场特效：蓝色流光扫过 + 光晕脉冲（只播一次） */
  animation: hlShine 2.2s cubic-bezier(0.3, 0.6, 0.3, 1) .7s both;
}
@keyframes hlShine {
  0%   { background-position: -130% 0; filter: drop-shadow(0 0 0 rgba(41, 151, 255, 0)); }
  25%  { filter: drop-shadow(0 0 16px rgba(41, 151, 255, 0.6)); }
  55%  { background-position: 130% 0; filter: drop-shadow(0 0 10px rgba(41, 151, 255, 0.35)); }
  75%  { filter: drop-shadow(0 0 4px rgba(41, 151, 255, 0.15)); }
  100% { background-position: 0% 0; filter: drop-shadow(0 0 0 rgba(41, 151, 255, 0)); }
}
.mission-sub { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; color: var(--text-2); margin-bottom: 26px; }
.mission-body { max-width: 620px; margin: 0 auto 12px; color: var(--text-2); font-size: 18px; line-height: 1.7; }
.mission-long { max-width: 620px; margin: 0 auto; color: var(--text-2); font-size: 15.5px; line-height: 1.8; }
.mission-strong { max-width: 620px; margin: 22px auto 0; color: var(--text); font-size: 17px; font-weight: 600; }
.mission-links { margin-top: 30px; display: flex; gap: 30px; justify-content: center; }
.mission-links a { color: var(--blue); font-size: 18px; font-weight: 500; }
.mission-links a span { margin-left: 5px; transition: transform .2s; display: inline-block; }
.mission-links a:hover { text-decoration: underline; }
.mission-links a:hover span { transform: translateX(3px); }
/* Apple-style fade-up entrance */
@keyframes missionUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.mission-tag, .mission-sub, .mission-body, .mission-long, .mission-strong, .mission-links, .mission-brand { animation: missionUp .8s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.mission-brand { animation-delay: 0s; }
.mission-sub { animation-delay: .1s; }
.mission-body { animation-delay: .18s; }
.mission-long { animation-delay: .26s; }
.mission-strong { animation-delay: .34s; }
.mission-links { animation-delay: .42s; }
@media (max-width: 620px) {
  .mission { padding: 56px 0 48px; }
  .mission-tag { font-size: 40px; letter-spacing: -1.5px; }
  .mission-sub { font-size: 20px; }
  .mission-links { gap: 18px; font-size: 15px; }
}

/* ---------- Hot products tabs (Apple segmented) ---------- */
.hot { background: var(--bg); padding: 72px 0; }
.hot-head { text-align: center; margin-bottom: 36px; }
.hot-head h2 { font-size: 40px; letter-spacing: -1px; color: var(--text); margin: 0 0 12px; font-weight: 700; }
.hot-head p { color: var(--text-2); font-size: 17px; }
.hot-tabs { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 40px; background: var(--bg-alt); border-radius: 980px; padding: 4px; width: fit-content; margin-left: auto; margin-right: auto; }
.hot-tab {
  padding: 8px 22px; border: 0; border-radius: 980px;
  background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; font-size: 14px;
  transition: all .2s;
}
.hot-tab:hover { color: var(--text); }
.hot-tab.active { background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.hot-panel { display: none; }
.hot-panel.active { display: block; }
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Cards (Apple: minimal) ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4/3; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; text-align: center; padding: 12px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 16.5px; color: var(--text); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.2px; }
.card p { font-size: 13.5px; color: var(--text-2); flex: 1; }
.card .more { margin-top: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--blue); font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.section-head h2 { font-size: 38px; letter-spacing: -1px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.section-head p { color: var(--text-2); font-size: 17px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.adv .ico { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; background: var(--blue-light); color: var(--blue); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.adv h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.adv p { font-size: 14px; color: var(--text-2); }

/* ---------- About band ---------- */
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-band h2 { font-size: 36px; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; font-weight: 700; }
.about-band p { color: var(--text-2); margin-bottom: 14px; }
.about-band .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.stat { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 26px; color: var(--blue); font-weight: 700; letter-spacing: -0.5px; }
.stat span { font-size: 13px; color: var(--text-2); }

/* ---------- Clients ---------- */
.client-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-logo { width: 155px; height: 62px; background: #fff; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; font-weight: 600; }

/* ---------- Inquiry ---------- */
.inquiry { background: var(--bg-alt); }
.inquiry .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.inquiry h2 { font-size: 34px; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; font-weight: 700; }
.inquiry p { color: var(--text-2); margin-bottom: 22px; }
.inquiry .contact-list li { padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.inquiry .contact-list b { color: var(--text); }
.form { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; color: var(--text); }
.form h3 { color: var(--text); margin-bottom: 16px; font-size: 20px; letter-spacing: -0.4px; }
.form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: var(--text-2); }
.form input, .form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14.5px; font-family: inherit; color: var(--text); background: #fff; transition: all .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form textarea { min-height: 90px; resize: vertical; }
.form .btn { margin-top: 18px; width: 100%; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.spec-table th { background: var(--bg-alt); color: var(--text); font-weight: 600; }
.spec-table tr:hover td { background: var(--bg-alt); }

/* ---------- Product detail ---------- */
.prod-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.gallery { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery .main { aspect-ratio: 4/3; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.gallery .thumbs { display: flex; gap: 8px; padding: 10px; background: #fff; }
.gallery .thumbs .t { flex: 1; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-3); cursor: pointer; }
.gallery .thumbs .t.active { border-color: var(--blue); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q { padding: 17px 20px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; }
.faq-q:hover { color: var(--blue); }
.faq-q::after { content: "+"; font-size: 20px; color: var(--text-3); font-weight: 400; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ---------- QC timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #d2d2d7; border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.tl-item h4 { color: var(--text); margin-bottom: 4px; font-weight: 600; }
.tl-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Footer (Apple: light, minimal) ---------- */
.site-footer { background: var(--bg-alt); color: var(--text-2); padding: 56px 0 0; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.site-footer h4 { color: var(--text); font-size: 13px; margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--blue); }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 12.5px; text-align: center; color: var(--text-3); }

/* ---------- Floating bottom bar (minimal) ---------- */
.float-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 150;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 980px; overflow: hidden;
  box-shadow: var(--shadow); display: flex;
}
.float-bar a { color: var(--text); padding: 10px 22px; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--border); }
.float-bar a:last-child { border-right: 0; }
.float-bar a:hover { color: var(--blue); background: var(--bg-alt); }

/* ---------- AI chat widget ---------- */
.chat-btn {
  position: fixed; right: 22px; bottom: 86px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 0; cursor: pointer; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45); display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-btn:hover { transform: scale(1.06); }
.chat-btn .pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); opacity: .5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }

.chat-box {
  position: fixed; right: 22px; bottom: 158px; z-index: 210; width: 370px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  display: none; flex-direction: column; overflow: hidden; height: 500px; max-height: 70vh;
}
.chat-box.open { display: flex; animation: fadeIn .25s ease; }
.chat-head { background: var(--blue); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-head b { font-size: 15px; }
.chat-head span { font-size: 11px; color: #cfe2fb; display: block; }
.chat-head .close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--text-3); font-style: italic; }
.chat-input { display: flex; border-top: 1px solid var(--border); padding: 12px; gap: 8px; background: #fff; }
.chat-input input { flex: 1; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 980px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button { padding: 10px 20px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; }
.chat-input button:hover { background: var(--blue-hover); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,0.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- Page hero (Apple: light) ---------- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 72px 0 56px; }
.page-hero h1 { font-size: 44px; letter-spacing: -1px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.page-hero p { color: var(--text-2); max-width: 680px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hot-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .prod-detail, .about-band, .inquiry .container { grid-template-columns: 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 6%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .float-bar a { padding: 10px 14px; font-size: 12px; }
  .slide h1 { font-size: 38px; }
}
@media (max-width: 620px) {
  .hot-grid, .adv-grid { grid-template-columns: 1fr; }
  .slide { padding: 64px 0; }
  .slide h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .section-head h2, .about-band h2, .hot-head h2 { font-size: 30px; }
  .page-hero h1 { font-size: 32px; }
}
