/* ========================================
   Reboot Restore 简体中文官网 - 公共样式
   主题色: #E37926
======================================== */

/* ---------- 重置与基础 ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  color:#1f2430;
  background:#ffffff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .2s ease}
button{font-family:inherit;cursor:pointer;border:none;background:none}
ul,ol{list-style:none}

:root{
  --brand:#E37926;
  --brand-dark:#c86516;
  --brand-light:#ffb065;
  --brand-50:#fff5ec;
  --brand-100:#ffe4cc;
  --ink-900:#1f2430;
  --ink-700:#3a4152;
  --ink-500:#6b7384;
  --ink-300:#c9cfdb;
  --line:#eceef3;
  --bg-soft:#f8f9fc;
  --radius:14px;
  --shadow-sm:0 2px 8px rgba(31,36,48,.06);
  --shadow-md:0 10px 30px rgba(31,36,48,.08);
  --shadow-lg:0 20px 60px rgba(227,121,38,.18);
  --container:1200px;
}

.container{max-width:var(--container);margin:0 auto;padding:0 24px}

/* ================================
   导航栏 Header
================================ */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:74px;
}
.nav-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.nav-brand img{height:38px;width:auto}
.nav-brand-text{display:flex;flex-direction:column;line-height:1.15}
.nav-brand-name{font-size:17px;font-weight:700;color:var(--ink-900);letter-spacing:.2px}
.nav-brand-sub{font-size:11px;color:var(--ink-500);letter-spacing:.4px}

.nav-menu{display:flex;align-items:center;gap:4px}
.nav-menu a{
  display:inline-block;padding:10px 16px;border-radius:10px;
  font-size:15px;color:var(--ink-700);font-weight:500;
  transition:all .2s ease;
}
.nav-menu a:hover{color:var(--brand);background:var(--brand-50)}

.nav-cta{display:flex;align-items:center;gap:10px;flex-shrink:0}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;border-radius:10px;
  font-size:14px;font-weight:600;white-space:nowrap;
  transition:all .25s ease;
}
.btn svg{width:16px;height:16px;flex-shrink:0}
.btn-ghost{color:var(--ink-700);background:transparent}
.btn-ghost:hover{color:var(--brand);background:var(--brand-50)}
.btn-primary{
  color:#fff;background:linear-gradient(135deg,#E37926 0%,#ff934b 100%);
  box-shadow:0 6px 18px rgba(227,121,38,.35);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(227,121,38,.45)}

/* 汉堡菜单 */
.nav-toggle{
  display:none;width:42px;height:42px;border-radius:10px;
  align-items:center;justify-content:center;
  background:var(--bg-soft);
}
.nav-toggle span{
  display:block;width:20px;height:2px;background:var(--ink-900);
  position:relative;transition:all .3s ease;
}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:20px;height:2px;background:var(--ink-900);
  transition:all .3s ease;
}
.nav-toggle span::before{top:-6px}
.nav-toggle span::after{top:6px}
.nav-toggle.active span{background:transparent}
.nav-toggle.active span::before{top:0;transform:rotate(45deg)}
.nav-toggle.active span::after{top:0;transform:rotate(-45deg)}

/* 移动端菜单：默认隐藏 */
.nav-mobile,.nav-backdrop{display:none}

/* ========= 移动端抽屉式菜单 ========= */
@media (max-width: 960px){
  .nav-menu{display:none}
  .nav-toggle{display:inline-flex}
  .nav-cta .btn:not(.nav-toggle){display:none}

  /* 遮罩层 */
  .nav-backdrop{
    display:block;position:fixed;inset:0;z-index:1001;
    background:rgba(15,18,28,.45);
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
    opacity:0;pointer-events:none;transition:opacity .35s ease;
  }
  .nav-backdrop.open{opacity:1;pointer-events:auto}

  /* 抽屉主体：右侧滑入 */
  .nav-mobile{
    display:flex;flex-direction:column;
    position:fixed;top:0;right:0;bottom:0;z-index:1002;
    width:min(86vw, 380px);
    background:
      radial-gradient(400px 240px at 100% 0%, rgba(227,121,38,.18), transparent 65%),
      linear-gradient(180deg,#ffffff 0%, #fff8f1 100%);
    border-left:1px solid #ffe1c4;
    box-shadow:-30px 0 80px rgba(31,36,48,.18);
    transform:translateX(105%);
    transition:transform .4s cubic-bezier(.2,.8,.2,1);
    overflow-y:auto;padding:22px 20px 28px;
  }
  .nav-mobile.open{transform:translateX(0)}

  /* 抽屉头部：品牌 + 关闭 */
  .nm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
  .nm-brand{display:flex;align-items:center;gap:10px}
  .nm-brand img{height:34px;width:auto}
  .nm-brand-text{display:flex;flex-direction:column;line-height:1.15}
  .nm-brand-name{font-size:15px;font-weight:700;color:var(--ink-900)}
  .nm-brand-sub{font-size:11px;color:var(--ink-500);margin-top:2px}
  .nm-close{
    width:38px;height:38px;border-radius:10px;
    display:inline-flex;align-items:center;justify-content:center;
    background:#fff;border:1px solid var(--line);color:var(--ink-700);
    transition:all .2s ease;
  }
  .nm-close:hover{color:var(--brand);border-color:#ffd9b3;background:var(--brand-50)}
  .nm-close svg{width:18px;height:18px}

  /* 分组标题 */
  .nm-section-label{
    font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
    color:var(--brand-dark);margin:8px 6px 10px;
    display:flex;align-items:center;gap:8px;
  }
  .nm-section-label::after{
    content:"";flex:1;height:1px;
    background:linear-gradient(90deg, rgba(227,121,38,.35), transparent);
  }

  /* 菜单项：卡片化 */
  .nm-list{display:flex;flex-direction:column;gap:6px;margin-bottom:22px}
  .nm-list a{
    display:flex;align-items:center;gap:14px;
    padding:12px 14px;border-radius:12px;
    background:#fff;border:1px solid transparent;
    color:var(--ink-900);
    transition:all .25s ease;position:relative;
    opacity:0;transform:translateX(16px);
    animation:nm-in .5s cubic-bezier(.2,.8,.2,1) forwards;
  }
  .nav-mobile.open .nm-list a{animation-delay:calc(var(--i,0) * 60ms + 120ms)}
  .nm-list a:nth-child(1){--i:0}
  .nm-list a:nth-child(2){--i:1}
  .nm-list a:nth-child(3){--i:2}
  .nm-list a:nth-child(4){--i:3}
  .nm-list a:nth-child(5){--i:4}
  @keyframes nm-in{to{opacity:1;transform:translateX(0)}}

  .nm-list a:hover,.nm-list a:active{
    border-color:#ffd9b3;background:#fff7ed;
    box-shadow:0 8px 20px rgba(227,121,38,.12);
  }
  .nm-ico{
    flex-shrink:0;width:38px;height:38px;border-radius:10px;
    background:linear-gradient(135deg,#fff2e3,#ffd9b3);
    color:var(--brand-dark);
    display:flex;align-items:center;justify-content:center;
  }
  .nm-ico svg{width:18px;height:18px}
  .nm-label{flex:1;display:flex;flex-direction:column;line-height:1.2;font-weight:600;font-size:15px}
  .nm-label small{font-size:11px;color:var(--ink-500);font-weight:500;margin-top:3px;letter-spacing:.3px}
  .nm-arrow{width:16px;height:16px;color:var(--ink-300);transition:transform .3s ease,color .2s ease}
  .nm-list a:hover .nm-arrow{color:var(--brand);transform:translateX(4px)}

  /* CTA 按钮组 */
  .nm-cta{display:flex;flex-direction:column;gap:10px;margin-bottom:22px}
  .nm-cta .btn{justify-content:center;padding:14px 18px;font-size:14.5px;border-radius:12px}
  .nm-cta .nm-ghost{background:#fff;border:1px solid var(--line);color:var(--ink-900)}
  .nm-cta .nm-ghost:hover{border-color:#ffd9b3;color:var(--brand);background:var(--brand-50)}

  /* 底部信息 */
  .nm-foot{
    margin-top:auto;padding-top:18px;border-top:1px dashed var(--line);
    display:flex;flex-direction:column;gap:10px;
  }
  .nm-foot-item{
    display:flex;align-items:center;gap:10px;
    font-size:12.5px;color:var(--ink-500);
  }
  .nm-foot-item svg{width:14px;height:14px;color:var(--brand);flex-shrink:0}
}

/* ================================
   页脚 Footer
================================ */
.site-footer{
  margin-top:80px;
  background:linear-gradient(180deg,#fafbfe 0%,#f3f5fa 100%);
  border-top:1px solid var(--line);
  color:var(--ink-700);
}
.footer-top{
  padding-top:56px;padding-bottom:40px;
  display:grid;grid-template-columns:1.3fr 1fr;gap:48px;align-items:start;
}
.footer-brand{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.footer-brand img{height:42px;width:auto}
.footer-brand-text{display:flex;flex-direction:column;line-height:1.2}
.footer-brand-name{font-size:18px;font-weight:700;color:var(--ink-900)}
.footer-brand-sub{font-size:12px;color:var(--ink-500);margin-top:2px}
.footer-desc{font-size:14px;line-height:1.8;color:var(--ink-500);max-width:560px}

.footer-contact{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 26px;box-shadow:var(--shadow-sm);
}
.footer-contact-title{
  font-size:13px;font-weight:600;color:var(--brand);
  letter-spacing:1px;text-transform:uppercase;margin-bottom:14px;
  display:flex;align-items:center;gap:8px;
}
.footer-contact-title::before{
  content:"";width:28px;height:2px;background:var(--brand);border-radius:2px;
}
.footer-contact-item{
  display:flex;align-items:center;gap:12px;padding:10px 0;
  font-size:14px;color:var(--ink-700);
}
.footer-contact-item svg{
  width:18px;height:18px;color:var(--brand);flex-shrink:0;
}
.footer-contact-item a:hover{color:var(--brand)}

.footer-notice{
  border-top:1px solid var(--line);
  padding-top:24px;padding-bottom:24px;font-size:13px;line-height:1.8;color:var(--ink-500);
}
.footer-notice strong{color:var(--ink-700)}

.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:20px;padding-bottom:20px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  font-size:13px;color:var(--ink-500);
}

@media (max-width: 820px){
  .site-footer{margin-top:60px}
  .footer-top{grid-template-columns:1fr;gap:28px;padding-top:44px;padding-bottom:28px}
  .footer-brand img{height:36px}
  .footer-brand-name{font-size:17px}
  .footer-desc{font-size:13.5px;line-height:1.75;max-width:100%}
  .footer-contact{padding:20px 20px}
  .footer-contact-item{font-size:13.5px;gap:10px;padding:8px 0;flex-wrap:wrap;word-break:break-all}
  .footer-notice{padding-top:20px;padding-bottom:20px;font-size:12.5px;line-height:1.75}
  .footer-bottom{
    padding-top:18px;padding-bottom:18px;flex-direction:column;gap:8px;
    justify-content:center;text-align:center;font-size:12.5px;
  }
}
@media (max-width: 480px){
  .footer-top{padding-top:36px;padding-bottom:24px;gap:22px}
  .footer-contact{padding:18px 16px;border-radius:12px}
  .footer-contact-title{font-size:12px;margin-bottom:10px}
  .footer-contact-item{font-size:13px}
  .footer-notice{font-size:12px}
}
