/* =========================================================
   宸愿实业 CHENYUAN INDUSTRIAL - 全站样式（全本地化，无外链）
   ========================================================= */
:root {
  --navy: #0a2540;
  --navy-2: #10315b;
  --navy-3: #16406f;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.18);
  --radius: 14px;
  --header-h: 76px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; letter-spacing: 4px;
  font-size: 14px; text-transform: uppercase; margin-bottom: 14px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 2px solid transparent; transition: all 0.3s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 37, 64, 0.35);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  height: 64px; background: rgba(10, 37, 64, 0.96);
  box-shadow: 0 6px 24px rgba(4, 18, 34, 0.35);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 46px; height: 46px; }
.brand .brand-cn { font-size: 21px; font-weight: 800; letter-spacing: 3px; line-height: 1.2; }
.brand .brand-en { font-size: 10.5px; letter-spacing: 2.6px; opacity: 0.75; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; color: rgba(255, 255, 255, 0.88); font-size: 15px;
  padding: 9px 15px; border-radius: 8px; transition: all 0.25s ease; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links a.nav-cta { color: #fff; background: var(--accent); margin-left: 8px; }
.nav-links a.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; border-radius: 10px;
  background: rgba(255, 255, 255, 0.12); position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 首屏 Hero（全屏） ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(1100px 520px at 82% 18%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(900px 600px at 12% 85%, rgba(22, 64, 111, 0.55), transparent 62%),
    linear-gradient(150deg, #081c31 0%, var(--navy) 46%, var(--navy-2) 100%);
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 70px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.18; font-weight: 800; letter-spacing: 1px; }
.hero h1 .accent { color: var(--accent); }
.hero-desc { margin: 22px 0 34px; max-width: 560px; color: rgba(255, 255, 255, 0.78); font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-craft {
  margin-top: 52px; display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-craft span {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(249, 115, 22, 0.4), transparent 70%);
  filter: blur(30px); border-radius: 50%;
}
.hero-visual svg { position: relative; z-index: 1; width: 100%; height: auto; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.65); font-size: 12px; letter-spacing: 3px;
}
.hero-scroll .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 14px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 3px; background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(24px, 3vw, 36px); color: var(--navy); line-height: 1.35; }
.about-text .lead { margin: 20px 0 14px; color: var(--ink); font-weight: 500; }
.about-text p { color: var(--muted); margin-bottom: 12px; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.about-facts .fact {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.about-facts .fact svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--accent); }
.about-facts .fact b { display: block; color: var(--navy); font-size: 15px; }
.about-facts .fact small { color: var(--muted); font-size: 13px; line-height: 1.5; display: block; }

.about-visual { position: relative; }
.about-visual .frame {
  position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  padding: 34px;
}
.about-visual .frame::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; pointer-events: none;
}
.about-visual .exp-badge {
  position: absolute; left: -18px; bottom: -20px; z-index: 2;
  background: var(--accent); color: #fff; border-radius: 14px; padding: 16px 24px;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4); text-align: center;
}
.about-visual .exp-badge b { font-size: 28px; line-height: 1.1; }
.about-visual .exp-badge small { display: block; font-size: 12.5px; opacity: 0.92; letter-spacing: 2px; }

/* ---------- 核心工艺 ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.craft-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px 30px; overflow: hidden; transition: all 0.35s ease;
}
.craft-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.craft-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.craft-card:hover::before { transform: scaleX(1); }
.craft-card .icon-box {
  width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 22px; transition: all 0.35s ease;
}
.craft-card:hover .icon-box { background: var(--accent); }
.craft-card .icon-box svg { width: 40px; height: 40px; color: var(--accent); transition: color 0.35s ease; }
.craft-card:hover .icon-box svg { color: #fff; }
.craft-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.craft-card .en { font-size: 11.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.craft-card p { color: var(--muted); font-size: 14.5px; margin: 14px 0 16px; min-height: 72px; }
.craft-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.craft-card ul li {
  font-size: 12.5px; color: var(--navy-2); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}

/* ---------- 数据优势（深色带） ---------- */
.stats-band {
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(249, 115, 22, 0.16), transparent 60%),
    linear-gradient(135deg, #081c31 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #fff; padding: 84px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat b i { font-style: normal; color: var(--accent); font-size: 0.62em; margin-left: 3px; }
.stat p { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; letter-spacing: 1.5px; }
.stat .bar { width: 44px; height: 3px; background: var(--accent); margin: 16px auto 0; border-radius: 2px; opacity: 0.85; }

/* ---------- 合作客户 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.client-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; transition: all 0.3s ease;
}
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(249, 115, 22, 0.45); }
.client-card .logo-text { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: 2px; }
.client-card .logo-sub { font-size: 11.5px; letter-spacing: 2.4px; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.client-card .tag {
  display: inline-block; margin-top: 16px; font-size: 12px; color: var(--accent-dark);
  background: var(--accent-soft); padding: 4px 14px; border-radius: 999px;
}
.client-note { text-align: center; color: var(--muted); margin-top: 34px; font-size: 14.5px; }
.client-note b { color: var(--navy); }

/* ---------- 下载中心 CTA ---------- */
.dl-cta {
  background:
    radial-gradient(640px 300px at 10% 100%, rgba(249, 115, 22, 0.2), transparent 62%),
    linear-gradient(120deg, #081c31, var(--navy-2));
  border-radius: 22px; color: #fff; padding: 56px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.dl-cta h3 { font-size: clamp(22px, 2.6vw, 30px); }
.dl-cta h3 .accent { color: var(--accent); }
.dl-cta p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; max-width: 560px; }
.dl-cta .btn-primary { flex: none; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: all 0.3s ease;
}
.contact-card:hover { background: #fff; box-shadow: var(--shadow-md); }
.contact-card .ic {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.contact-card .ic svg { width: 28px; height: 28px; }
.contact-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #071627; color: rgba(255, 255, 255, 0.66); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.9; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 2px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer ul a { transition: color 0.25s ease; }
.site-footer ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 5px; color: var(--accent); flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- 子页面头图 ---------- */
.page-hero {
  min-height: 46vh; display: flex; align-items: flex-end; color: #fff;
  background:
    radial-gradient(800px 380px at 85% 10%, rgba(249, 115, 22, 0.24), transparent 62%),
    linear-gradient(140deg, #081c31 0%, var(--navy) 55%, var(--navy-2) 100%);
  padding: calc(var(--header-h) + 54px) 0 44px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 44px); letter-spacing: 2px; }
.page-hero .sub { margin-top: 10px; color: rgba(255, 255, 255, 0.72); }

/* ---------- 下载中心 ---------- */
.dl-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.dl-count { color: var(--muted); font-size: 14.5px; }
.dl-count b { color: var(--accent-dark); }
.dl-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; min-width: 260px;
}
.dl-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.dl-search input { border: none; outline: none; flex: 1; font-size: 14.5px; background: transparent; color: var(--ink); }

.file-list { display: flex; flex-direction: column; gap: 14px; }
.file-item {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; transition: all 0.25s ease;
}
.file-item:hover { border-color: rgba(249, 115, 22, 0.5); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.file-icon {
  width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 0.5px;
}
.fi-generic { background: linear-gradient(135deg, #64748b, #475569); }
.fi-pdf { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.fi-doc { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.fi-xls { background: linear-gradient(135deg, #22c55e, #15803d); }
.fi-ppt { background: linear-gradient(135deg, #f97316, #c2410c); }
.fi-zip { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.fi-img { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.fi-cad { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.file-info { flex: 1; min-width: 0; }
.file-info .name {
  color: var(--navy); font-weight: 600; font-size: 15.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-info .meta { color: var(--muted); font-size: 13px; margin-top: 5px; display: flex; gap: 16px; flex-wrap: wrap; }
.file-info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.file-info .meta svg { width: 13px; height: 13px; }
.btn-dl {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all 0.25s ease;
}
.btn-dl:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-dl svg { width: 16px; height: 16px; }
.file-empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.file-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: #cbd5e1; }
.dl-notice {
  margin-top: 34px; background: var(--accent-soft); border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius); padding: 18px 22px; font-size: 14px; color: #7c2d12;
  display: flex; gap: 12px; align-items: flex-start;
}
.dl-notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------- 管理后台 ---------- */
.admin-wrap { max-width: 860px; margin: 0 auto; }
.admin-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.admin-panel h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.admin-panel h3 svg { width: 22px; height: 22px; color: var(--accent); }
.admin-panel .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.admin-login { max-width: 420px; margin: 40px auto; text-align: center; }
.admin-login .lock { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.admin-login .lock svg { width: 36px; height: 36px; }
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input[type="text"], .field input[type="password"] {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none; transition: border 0.25s ease;
}
.field input:focus { border-color: var(--accent); }
.dropzone {
  position: relative; overflow: hidden;
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 34px 20px; text-align: center;
  color: var(--muted); transition: all 0.25s ease; cursor: pointer; background: var(--bg-soft);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.dropzone svg { width: 40px; height: 40px; margin: 0 auto 12px; }
/* 隐形文件输入层：铺满整个选区，点击即弹出系统选择窗口（不依赖 label 转发，兼容各类浏览器） */
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; margin: 0; padding: 0; border: none;
  opacity: 0; cursor: pointer; z-index: 3;
}
.dropzone b { color: var(--accent-dark); }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.admin-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-files th {
  text-align: left; padding: 10px 12px; background: var(--bg-soft); color: var(--navy);
  border-bottom: 2px solid var(--line); font-size: 13px; letter-spacing: 1px;
}
.admin-files td { padding: 12px; border-bottom: 1px solid var(--line); word-break: break-all; }
.admin-files td.size, .admin-files td.date { color: var(--muted); white-space: nowrap; }
.btn-sm {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-sm:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm.danger { color: #b91c1c; border-color: #fecaca; }
.btn-sm.danger:hover { background: #fef2f2; border-color: #b91c1c; }
.btn-sm svg { width: 14px; height: 14px; }
.admin-msg {
  padding: 12px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.admin-msg.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.admin-msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-stats .chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px;
  font-size: 13.5px; color: var(--muted);
}
.admin-stats .chip b { color: var(--navy); }
.admin-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.admin-back:hover { color: var(--accent-dark); }
.admin-back svg { width: 16px; height: 16px; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 90; width: 46px; height: 46px;
  border-radius: 12px; border: none; background: var(--navy); color: #fff;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all 0.3s ease; box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 560px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center;
    gap: 8px; background: rgba(8, 28, 49, 0.98); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: all 0.35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 19px; padding: 13px 30px; width: min(320px, 80vw); text-align: center; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 12px; }
  body.nav-locked { overflow: hidden; }
}

@media (max-width: 768px) {
  /* 移动端：标题居中 */
  .section-head { text-align: center; }
  .about-text { text-align: center; }
  .about-facts { text-align: left; }
  .hero { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-craft { justify-content: center; }
  .dl-cta { padding: 42px 28px; text-align: center; justify-content: center; }
  .craft-card p { min-height: 0; }
  .file-item { flex-wrap: wrap; }
  .file-icon { width: 44px; height: 44px; }
  .btn-dl { width: 100%; justify-content: center; }
  .file-info { flex-basis: calc(100% - 62px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .admin-panel { padding: 22px 16px; }
  .admin-files th:nth-child(3), .admin-files td.date { display: none; }
  .back-top { right: 16px; bottom: 20px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .craft-grid, .client-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .brand .brand-cn { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .dl-search { min-width: 100%; }
  .stats-grid { gap: 30px 12px; }
  .about-visual .exp-badge { left: 50%; transform: translateX(-50%); bottom: -22px; white-space: nowrap; }
  .about-visual { margin-bottom: 26px; }
}

/* =========================================================
   文件夹条目 / 预览按钮 / 在线预览页
   ========================================================= */

/* ---- 文件夹行 ---- */
.file-item.is-folder { background: #fffbf5; border-color: rgba(249, 115, 22, 0.3); }
.file-item.is-folder:hover { border-color: var(--accent); }
.folder-ic {
  width: 52px; height: 52px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #fdba74, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}
.folder-ic svg { width: 26px; height: 26px; }
.file-item.is-folder .name a { color: var(--navy); }
.file-item.is-folder .name a:hover { color: var(--accent-dark); }

/* ---- 预览按钮（次要样式） ---- */
.btn-view {
  background: rgba(10, 37, 64, 0.05); color: var(--navy-2);
  border-color: rgba(10, 37, 64, 0.22);
}
.btn-view:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- 可预览标签 ---- */
.pv-tag {
  color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 1px 10px; border-radius: 999px; font-size: 12px;
}

/* ---- 新建文件夹表单 ---- */
.mkdir-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mkdir-row input[type="text"] {
  flex: 1; min-width: 220px; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14.5px; font-family: inherit; outline: none;
}
.mkdir-row input[type="text"]:focus { border-color: var(--accent); }

/* ---- 在线预览页 ---- */
.pv-page { padding: 96px 0 50px; }
.pv-wide { width: min(1560px, 97%); margin: 0 auto; }
.pv-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.pv-file { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pv-file .file-icon { width: 46px; height: 46px; }
.pv-fileinfo { min-width: 0; }
.pv-title {
  font-weight: 700; color: var(--navy); font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw;
}
.pv-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 4px; }
.pv-path a { color: var(--accent-dark); }
.pv-path a:hover { text-decoration: underline; }
.pv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm2 { padding: 10px 22px; font-size: 14px; }

.pv-frame { height: calc(100vh - 190px); min-height: 560px; }
.pv-frame iframe {
  width: 100%; height: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); background: #525659;
}
.pv-image {
  display: grid; place-items: center; background: #eef2f7;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.pv-image img {
  max-width: 100%; max-height: 74vh; background: #fff;
  border-radius: 10px; box-shadow: var(--shadow-md);
}
.pv-video video {
  width: 100%; max-height: 74vh; border-radius: var(--radius);
  background: #000; box-shadow: var(--shadow-md); display: block;
}
.pv-audio {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 24px; text-align: center;
}
.pv-audio-ic {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.pv-audio-ic svg { width: 38px; height: 38px; }
.pv-audio-name { color: var(--navy); font-weight: 600; margin-bottom: 18px; word-break: break-all; }
.pv-audio audio { width: min(560px, 100%); }
.pv-text {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; max-height: 74vh; overflow: auto;
  font-family: Consolas, "Courier New", monospace; font-size: 14.5px;
  line-height: 1.9; color: #334155; white-space: pre-wrap; word-break: break-all;
}
.pv-none {
  text-align: center; padding: 80px 24px; background: #fff;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.pv-none svg { width: 60px; height: 60px; margin: 0 auto 18px; color: #cbd5e1; }
.pv-none h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.pv-none p { margin-bottom: 24px; }
.pv-tip { margin-top: 14px; color: var(--muted); font-size: 13.5px; text-align: center; }
.pv-tip a { color: var(--accent-dark); font-weight: 600; }

@media (max-width: 768px) {
  .pv-page { padding-top: 84px; }
  .pv-title { max-width: 100%; white-space: normal; }
  .pv-frame { height: 78vh; min-height: 420px; }
  .pv-actions { width: 100%; }
  .pv-actions .btn { flex: 1; }
}
