/* ===== 型号选择 / 下级下载页 通用样式 ===== */
/* 主色沿用原站青色 #00b0a5，深色 hover #008c86 */

/* —— 主页：型号选择区 —— */
.model-selector {
  max-width: 1000px;
  margin: 28px auto 10px;
  padding: 0 20px;
}
.ms-head { text-align: center; margin-bottom: 26px; }
.ms-title { font-size: 26px; color: #1a1a1a; font-weight: 700; margin: 0 0 8px; }
.ms-sub { font-size: 15px; color: #777; margin: 0; }

.ms-dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.ms-dropdown label { font-size: 16px; color: #333; font-weight: 600; }
.ms-dropdown select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 340px;
  padding: 12px 44px 12px 16px;
  font-size: 16px;
  color: #222;
  border: 2px solid #00b0a5;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2300b0a5' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 16px center;
  cursor: pointer;
  outline: none;
  transition: .2s;
}
.ms-dropdown select:focus {
  border-color: #008c86;
  box-shadow: 0 0 0 3px rgba(0, 176, 165, .15);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.model-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 22px 20px;
  transition: .2s;
  cursor: pointer;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: #00b0a5;
  box-shadow: 0 10px 24px rgba(0, 176, 165, .18);
}
.mc-code { font-size: 20px; font-weight: 800; color: #00b0a5; letter-spacing: .5px; }
.mc-name { font-size: 16px; color: #222; margin: 8px 0 10px; font-weight: 600; }
.mc-tags { font-size: 13px; color: #999; min-height: 18px; }
.mc-go { margin-top: 14px; font-size: 14px; color: #00b0a5; font-weight: 600; }

/* —— 主页：设计软件宏命令下载 —— */
.macro-software { max-width: 1000px; margin: 16px auto 4px; padding: 0 20px; }
.ms-note { font-size: 13px; color: #c0392b; margin: 6px 0 0; }
/* 宏命令选择结果卡片 */
.macro-result { margin-top: 16px; }
.macro-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 640px;
}
.mi-icon { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.mi-info { flex: 1; min-width: 0; }
.mi-name { font-size: 17px; font-weight: 700; color: #222; }
.mi-desc { font-size: 13px; color: #888; margin-top: 4px; }
.mi-btn {
  flex-shrink: 0;
  text-decoration: none;
  background: linear-gradient(135deg, #ff9d2f, #e8690b);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  transition: .2s;
}
.mi-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(232, 105, 11, .28); }

/* —— 下级下载页：型号信息卡 —— */
.model-hero {
  background: linear-gradient(135deg, #00b0a5, #008c86);
  border-radius: 12px;
  padding: 26px 28px;
  color: #fff;
  margin: 22px 0 26px;
}
.mh-code { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.mh-name { font-size: 18px; margin-top: 6px; opacity: .96; }
.mh-en { font-size: 13px; margin-top: 4px; opacity: .82; }
.mh-tags { margin-top: 12px; }
.mh-tags span {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  margin: 0 6px 6px 0;
}

/* —— 下级下载页：产品主图 —— */
.mh-product-img {
  margin: 22px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  line-height: 0;
}
.mh-product-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— 下级下载页：下载列表 —— */
.dl-section { max-width: 1000px; margin: 0 auto; }
.dl-title {
  font-size: 20px;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid #00b0a5;
}
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: .2s;
}
.dl-item:hover {
  border-color: #00b0a5;
  box-shadow: 0 6px 16px rgba(0, 176, 165, .12);
}
.dl-name { font-size: 16px; color: #222; font-weight: 600; }
.dl-meta { font-size: 12px; color: #aaa; margin-top: 4px; }
.dl-btn {
  display: inline-block;
  text-decoration: none;
  background: #00b0a5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  transition: .2s;
  white-space: nowrap;
}
.dl-btn:hover { background: #008c86; }
.dl-btn:active { transform: scale(.97); }

.back-link { max-width: 1000px; margin: 18px auto 0; }
.back-link a {
  display: inline-block;
  color: #00b0a5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.back-link a:hover { text-decoration: underline; }

.copyright { max-width: 1000px; margin: 22px auto 0; font-size: 13px; color: #bbb; }

/* —— 宏命令下载区（带软件标识图） —— */
.macro-section { margin-top: 34px; }
.macro-item { gap: 14px; }
.macro-item .dl-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: #f7f7f7;
  display: flex; align-items: center; justify-content: center;
}
.macro-item .dl-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.macro-item .dl-info { flex: 1; min-width: 0; }

/* —— 响应式 —— */
@media (max-width: 768px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .ms-dropdown select { min-width: 80%; }
}
@media (max-width: 480px) {
  .model-grid { grid-template-columns: 1fr; }
  .dl-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-btn { align-self: stretch; text-align: center; }
}
