/*
Theme Name: iiidmagic Child
Theme URI: https://example.com/
Description: MDT（Magic Display Technology）子主题。用于固定首页 + ACF可编辑内容运营。
Author: MDT
Author URI: https://example.com/
Version: 1.0.0
Template: hello-elementor
Text Domain: iiidmagic-child
*/

/*
================================================================
说明：
1. 这里默认父主题是 Hello Elementor
2. 如果中国同事最终不用 Hello Elementor，而用别的父主题，
   只需要把上面的 Template: hello-elementor 改成实际父主题文件夹名即可
================================================================
*/

/* =========================
   1. 全站基础变量
   品牌色、圆角、阴影、正文宽度
========================= */
:root {
  --mdt-color-bg: #050814;
  --mdt-color-bg-soft: #0b1220;
  --mdt-color-surface: #101a2e;
  --mdt-color-surface-2: #0e1728;
  --mdt-color-text: #eef4ff;
  --mdt-color-text-soft: #b5c2da;
  --mdt-color-line: rgba(255, 255, 255, 0.12);
  --mdt-color-accent: #00d4ff;
  --mdt-color-accent-2: #5d7cff;
  --mdt-color-accent-3: #7b61ff;
  --mdt-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.28);
  --mdt-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.18);
  --mdt-radius-lg: 24px;
  --mdt-radius-md: 18px;
  --mdt-radius-sm: 12px;
  --mdt-content-width: 1200px;
}

/* =========================
   2. 基础元素
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mdt-color-text);
  background: var(--mdt-color-bg);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--mdt-color-accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.94;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================
   3. 通用容器
========================= */
.mdt-container {
  width: min(100% - 32px, var(--mdt-content-width));
  margin-left: auto;
  margin-right: auto;
}

.mdt-visually-hidden,
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mdt-text-gradient {
  background: linear-gradient(90deg, var(--mdt-color-accent) 0%, var(--mdt-color-accent-2) 50%, var(--mdt-color-accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================
   4. 通用按钮
   后台换文案时，这里不用动
========================= */
.mdt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  cursor: pointer;
}

.mdt-btn:hover {
  transform: translateY(-1px);
}

.mdt-btn--primary {
  color: #04111f;
  background: linear-gradient(90deg, var(--mdt-color-accent) 0%, #8bf3ff 100%);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.24);
}

.mdt-btn--secondary {
  color: var(--mdt-color-text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.18);
}

.mdt-btn--ghost {
  color: var(--mdt-color-text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

/* =========================
   5. 宽版 / 全宽兼容
========================= */
.alignwide {
  width: min(100% - 32px, 1280px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   6. 后台管理条兼容
========================= */
.admin-bar .mdt-page-local-nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .mdt-page-local-nav {
    top: 46px;
  }
}
