/* ==========================================================================
   Fortuna Power — 全站骨架样式
   品牌色：深绿 #1C4028 / 橙色渐变 #F2B25E -> #E89840 -> #D48436
   本文件负责：CSS 变量、基础排版、顶栏、导航、品牌、按钮、页脚。
   Elementor 区块样式见 elementor-fp.css。
   ========================================================================== */

:root {
  --green: #1c4028;
  --green-dk: #12301d;
  --green-lt: #245034;
  --orange: #e89840;
  --orange-lt: #f2b25e;
  --orange-dk: #d48436;
  --lime: #d9e158;
  --cream: #edf4ee;
  --ink: #0f2016;
  --body: #4a5c4f;
  --muted: #71816f;
  --line: #e3e9e4;
  --line-w: rgba(255, 255, 255, 0.18);
  --grad: linear-gradient(135deg, #f2b25e, #e89840 50%, #d48436);
  --r: 16px;
  --r-lg: 24px;
  --sh: 0 16px 40px rgba(12, 31, 19, 0.09);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* 键盘焦点可见（无障碍），整站统一 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* 让 Elementor 前台渲染不受默认主题干扰 */
.fp-main { display: block; }

/* ------------------------------------------------------------- 布局 */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------- 按钮（主题页眉/页脚用） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: var(--green-dk); box-shadow: 0 10px 22px rgba(212, 132, 54, 0.3); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-lt); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-light { background: transparent; color: #fff; border: 1.5px solid var(--line-w); }
.btn-light:hover { background: #fff; color: var(--green); }
.btn-sm { padding: 10px 20px; font-size: 0.87rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ 顶栏 */
.topbar { background: var(--green-dk); color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar ul { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, 0.7); }
.topbar a:hover { color: #fff; }

/* ------------------------------------------------------------ 导航 */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--green);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: var(--green); }
.brand-text span { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange-dk); font-weight: 700; margin-top: 3px; }

/* 品牌 Logo 图片（页眉 / 页脚） */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;   /* 宽度上限 */
  max-height: 44px;   /* 高度上限 */
  object-fit: contain;
  flex-shrink: 0;
}
/* 页脚为深色背景，Logo 放在浅色圆角底上以保证清晰 */
.footer .brand-logo--footer {
  max-width: 190px; max-height: 40px;
  background: #fff; border-radius: 12px; padding: 8px 12px;
  box-sizing: content-box;
}

@media (max-width: 640px) {
  .brand-logo { max-width: 160px; max-height: 36px; }
  .footer .brand-logo--footer { max-width: 150px; max-height: 32px; padding: 6px 9px; }
}

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu li { list-style: none; }
.nav-menu a {
  display: block; padding: 9px 13px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; color: var(--green);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .on > a { background: #eef4ef; color: var(--orange-dk); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  place-items: center; font-size: 1.3rem; color: var(--green); line-height: 1;
}

/* ------------------------------------------------------------ 页脚 */
.footer { position: relative; background: #0c1f13; color: rgba(255, 255, 255, 0.6); padding: 64px 0 0; font-size: 0.91rem; }
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--grad);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer .brand-mark { background: rgba(255, 255, 255, 0.09); }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: var(--orange-lt); }
.footer-brand p { margin: 18px 0 20px; max-width: 290px; font-size: 0.89rem; }
.footer-contact { display: grid; gap: 8px; margin-bottom: 20px; font-size: 0.89rem; }
.footer-contact li { color: rgba(255, 255, 255, 0.62); }
.footer-contact a { color: rgba(255, 255, 255, 0.62); }
.footer-contact a:hover { color: var(--orange-lt); }
.social { display: flex; gap: 9px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.62); }
.social a:hover, .social a:focus { background: var(--grad); color: var(--green-dk); }
.footer-col h4 { color: #fff; font-size: 0.83rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.62); }
.footer-col a:hover { color: var(--orange-lt); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.83rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav ul { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer-bottom a, .footer-bottom span { color: rgba(255, 255, 255, 0.62); }
.footer-bottom a:hover { color: var(--orange-lt); }

/* ------------------------------------------------------------ 工具 */
.container-narrow { max-width: 880px; }
.mt { margin-top: 36px; }
.center { text-align: center; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 980px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh); padding: 8px 20px 18px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar ul:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
