/* ============================================================
   CodexCN 共享样式表
   主色：#0078d4 (Microsoft Blue)
   兼容 IE11（不使用 CSS 自定义属性 / 不使用 flex-gap 兜底以外的高级特性）
   ============================================================ */

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: #0078d4; text-decoration: none; }
a:hover { color: #005a9e; text-decoration: underline; }

img { max-width: 100%; display: block; border: 0; }

ul, ol { list-style: none; }

/* ---------- 通用容器 ---------- */
.container {
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #f5f7fa;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 48px;
}

/* ---------- 顶部导航 ---------- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.navbar-inner {
  display: table;
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
  height: 62px;
}

.navbar-brand {
  display: table-cell;
  vertical-align: middle;
  font-size: 20px;
  font-weight: 700;
  color: #0078d4;
}

.navbar-brand .brand-dot {
  color: #005a9e;
}

.navbar-nav {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.navbar-nav a {
  display: inline-block;
  padding: 6px 14px;
  margin-left: 4px;
  color: #333;
  font-size: 14px;
  border-radius: 4px;
}

.navbar-nav a:hover {
  background: #f0f6fb;
  color: #0078d4;
  text-decoration: none;
}

.navbar-nav a.btn-nav {
  background: #0078d4;
  color: #fff;
}

.navbar-nav a.btn-nav:hover {
  background: #005a9e;
  color: #fff;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .2s, box-shadow .2s, transform .1s;
  -webkit-transition: background .2s, box-shadow .2s, transform .1s;
}

.btn-primary {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

.btn-primary:hover {
  background: #005a9e;
  border-color: #005a9e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,120,212,0.3);
}

.btn-secondary {
  background: #fff;
  color: #0078d4;
  border-color: #0078d4;
}

.btn-secondary:hover {
  background: #f0f6fb;
  color: #005a9e;
  text-decoration: none;
}

.btn-large {
  padding: 15px 38px;
  font-size: 17px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn[disabled] {
  background: #b8d4ea;
  border-color: #b8d4ea;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Hero 区 ---------- */
.hero {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 60%, #004578 100%);
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 60%, #004578 100)\9;
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero .hero-tagline {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 14px;
  opacity: 0.95;
}

.hero .hero-desc {
  font-size: 16px;
  opacity: 0.85;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions a {
  margin: 0 8px;
}

.hero-actions .btn-primary {
  background: #fff;
  color: #0078d4;
  border-color: #fff;
}

.hero-actions .btn-primary:hover {
  background: #f0f6fb;
  color: #005a9e;
}

.hero-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ---------- 特性区 ---------- */
.feature-grid {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.feature-card {
  -webkit-flex: 0 0 25%;
  flex: 0 0 25%;
  padding: 12px;
}

.feature-card-inner {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 28px 22px;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  -webkit-transition: box-shadow .2s, transform .2s, border-color .2s;
}

.feature-card-inner:hover {
  border-color: #0078d4;
  box-shadow: 0 8px 24px rgba(0,120,212,0.12);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0078d4, #2b88d8);
  color: #fff;
  font-size: 24px;
  text-align: center;
  line-height: 52px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ---------- 定价区 ---------- */
.pricing-grid {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -12px;
  -webkit-align-items: stretch;
  align-items: stretch;
}

.pricing-card {
  -webkit-flex: 0 0 25%;
  flex: 0 0 25%;
  padding: 12px;
}

.pricing-card-inner {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 30px 24px;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  -webkit-transition: box-shadow .2s, transform .2s, border-color .2s;
}

.pricing-card-inner:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.pricing-card.featured .pricing-card-inner {
  border: 2px solid #0078d4;
  box-shadow: 0 12px 32px rgba(0,120,212,0.18);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background: #0078d4;
  color: #fff;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-name {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
  min-height: 38px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: #0078d4;
  margin-bottom: 4px;
}

.pricing-price .currency {
  font-size: 18px;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-price .period {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}

.pricing-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 18px;
}

.pricing-features {
  margin-bottom: 22px;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.pricing-features li {
  font-size: 14px;
  color: #444;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px dashed #eee;
}

.pricing-features li:last-child { border-bottom: 0; }

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: #107c10;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  padding-right: 44px;
}

.faq-q:hover { background: #fafbfc; }

.faq-q .faq-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #0078d4;
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s;
  -webkit-transition: transform .2s;
}

.faq-item.open .faq-q .faq-arrow {
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }

/* ---------- 页脚 ---------- */
.footer {
  background: #1b2733;
  color: #c5cdd6;
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-grid {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -16px;
}

.footer-col {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  padding: 0 16px;
  min-width: 220px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p, .footer-col li {
  font-size: 13px;
  color: #9aa6b2;
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-col a {
  color: #c5cdd6;
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #2c3a48;
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7884;
}

/* ---------- 购买页：产品选择 ---------- */
.purchase-layout {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.purchase-col-left {
  -webkit-flex: 0 0 66.6667%;
  flex: 0 0 66.6667%;
  padding: 0 12px;
}

.purchase-col-right {
  -webkit-flex: 0 0 33.3333%;
  flex: 0 0 33.3333%;
  padding: 0 12px;
}

.machine-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
}

.machine-box label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.machine-box .machine-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  outline: none;
  transition: border-color .2s;
  -webkit-transition: border-color .2s;
}

.machine-box .machine-input:focus {
  border-color: #0078d4;
}

.machine-box .machine-hint {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- 购买页：二维码面板 ---------- */
.qr-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 26px 22px;
  text-align: center;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
}

.qr-panel h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.qr-panel .qr-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border: 1px dashed #cfd8e3;
  border-radius: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #fafbfc;
  color: #9aa6b2;
  font-size: 13px;
  padding: 12px;
}

.qr-placeholder img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
}

.qr-status {
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
  margin: 16px 0;
}

.qr-status.waiting {
  background: #fff8e1;
  color: #8a6d3b;
  border: 1px solid #ffe082;
}

.qr-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.qr-status.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5b7b1;
}

.qr-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ffe082;
  border-top-color: #8a6d3b;
  border-radius: 50%;
  -webkit-animation: spin 0.8s linear infinite;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 下载页 ---------- */
.steps-list {
  counter-reset: step;
  max-width: 860px;
  margin: 0 auto;
}

.step-item {
  position: relative;
  padding: 0 0 28px 64px;
  border-left: 2px solid #e1e8ef;
  margin-left: 22px;
}

.step-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -23px;
  top: 0;
  width: 44px;
  height: 44px;
  background: #0078d4;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-weight: 700;
  font-size: 18px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #0078d4;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.step-item p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.step-item code {
  background: #f0f6fb;
  color: #0078d4;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.screenshot-placeholder {
  margin-top: 14px;
  background: linear-gradient(135deg, #f0f6fb, #e1ecf7);
  border: 2px dashed #b8d4ea;
  border-radius: 8px;
  height: 180px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #5a7a99;
  font-size: 13px;
}

/* ---------- 系统需求 ---------- */
.requirements-grid {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.req-card {
  -webkit-flex: 0 0 33.3333%;
  flex: 0 0 33.3333%;
  padding: 10px;
}

.req-card-inner {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 4px solid #0078d4;
  border-radius: 8px;
  padding: 22px 20px;
  height: 100%;
}

.req-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.req-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.req-card code {
  background: #f0f6fb;
  color: #0078d4;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

/* ---------- 提示框 ---------- */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14px;
}

.alert-info {
  background: #e7f3ff;
  border: 1px solid #b8d4ea;
  color: #004578;
}

.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #8a6d3b;
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

/* ---------- 页面头部小标题 ---------- */
.page-header {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100)\9;
  color: #fff;
  padding: 54px 0 44px;
  text-align: center;
}

.page-header h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* ---------- 选中状态 ---------- */
.pricing-card.selected .pricing-card-inner {
  border: 2px solid #0078d4;
  box-shadow: 0 8px 24px rgba(0,120,212,0.18);
}

.pricing-card .pick-tag {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0078d4;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.pricing-card.selected .pick-tag { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-card { -webkit-flex: 0 0 50%; flex: 0 0 50%; }
  .pricing-card { -webkit-flex: 0 0 50%; flex: 0 0 50%; margin-bottom: 24px; }
  .purchase-col-left, .purchase-col-right { -webkit-flex: 0 0 100%; flex: 0 0 100%; }
  .qr-panel { position: static; }
  .req-card { -webkit-flex: 0 0 50%; flex: 0 0 50%; margin-bottom: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 24px; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-tagline { font-size: 17px; }
  .hero-actions a { display: block; margin: 8px 0; }
  .feature-card { -webkit-flex: 0 0 100%; flex: 0 0 100%; }
  .pricing-card { -webkit-flex: 0 0 100%; flex: 0 0 100%; }
  .req-card { -webkit-flex: 0 0 100%; flex: 0 0 100%; }
  .navbar-nav a { padding: 6px 8px; margin-left: 2px; font-size: 13px; }
  .page-header h1 { font-size: 26px; }
  .footer-col { -webkit-flex: 0 0 100%; flex: 0 0 100%; margin-bottom: 22px; }
}
