/**
 *
 * 音乐搜索器 - CSS 文件（墨绿点缀版 / Minimal Premium Green）
 *
 * 设计取舍：
 *   - 纯白大留白，近黑文字，1px 细线，极淡阴影；零渐变、零发光。
 *   - 层级靠字重 + 字号 + 字距 + 间距建立，而非色彩特效。
 *   - 激活态一律近黑实底白字，克制且统一。
 *   - 只覆盖视觉样式，不改动任何 JS 挂钩的 ID / class。
 *     搜索逻辑、音频接口、QQ 会员 Cookie 均不受影响。
 *
 */

/* ============ 设计变量 ============ */
:root {
  --ink: #17171a;          /* 主文字 —— 近黑 */
  --accent: #0f6b50;       /* 点缀色 —— 深墨绿（激活态/品牌元素） */
  --accent-dark: #0a4a38;  /* 墨绿 hover */
  --ink-2: #3a3a3f;        /* 次级文字 */
  --gray: #8a8a93;         /* 弱化文字 */
  --gray-2: #a9a9b1;       /* 占位 / 页脚 */
  --line: #ebebef;         /* 常规细线 */
  --line-2: #e2e2e7;       /* 强调细线 */
  --paper: #ffffff;        /* 卡片 / 纸面 */
  --canvas: #f7f7f8;       /* 页面底 —— 极浅灰，衬出白卡 */
  --soft: #f5f5f7;         /* 分段控件 / code 底 */
  --shadow: 0 1px 3px rgba(20, 20, 30, .05), 0 8px 28px rgba(20, 20, 30, .035);
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .05);
}

/* ============ 基础 ============ */
html {
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Microsoft YaHei', 'PingFang SC',
    'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--canvas);
}
a {
  -webkit-transition: color .25s, opacity .25s;
  transition: color .25s, opacity .25s;
}

/* ============ 容器 / 头部 ============ */
.about {
  background: transparent;
  color: var(--ink-2);
}
/* 修复 AmazeUI grid 负 margin 导致的横向溢出 */
.about.am-g,
.about .am-g {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.about .am-container {
  padding-left: 14px !important;
  padding-right: 14px !important;
  max-width: 560px !important;
}
.about [class*="am-u-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.about-color {
  color: var(--ink);
}
.about > .am-container.am-margin-vertical-xl {
  margin-top: 2.2rem !important;
  margin-bottom: 1.4rem !important;
}
.about .am-padding-vertical {
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
}
.about > .am-container > header {
  padding-top: 4px !important;
}
/* 头部：细线徽标 + 纯黑标题 + 一行副标题 */
.clean-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.about-title {
  font-size: 128%;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  text-align: left;
}
.about-subtitle {
  margin: 0 !important;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 2.5px;
}

/* ============ 搜索卡片 ============ */
#j-validator {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 15px 20px;
  box-shadow: var(--shadow);
}
/* 三段式切换标签 —— iOS 风格分段控件，激活黑底白字 */
.music-tabs {
  display: flex !important;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.music-tabs > li {
  flex: 1;
  float: none !important;
  text-align: center;
}
.music-tabs > li > a {
  display: block;
  padding: 8px 2px;
  border-radius: 7px;
  color: var(--gray);
  font-size: 13px;
  cursor: pointer;
  transition: all .25s;
}
.music-tabs > li > a:hover {
  color: var(--ink-2);
}
.music-tabs > li.am-active > a {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
/* 搜索输入框 */
#j-input {
  background: #fff !important;
  border: 1px solid var(--line-2) !important;
  color: var(--ink) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-align: center;
  transition: border-color .25s, box-shadow .25s;
  font-size: 14px;
}
#j-input::placeholder {
  color: var(--gray-2);
}
#j-input:focus {
  background: #fff !important;
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 3px rgba(15, 107, 80, .10) !important;
}

/* 音源胶囊 —— 未选中白底细线，选中黑底白字 */
.music-type {
  margin-top: 14px;
  text-align: center;
}
.music-type .am-radio-inline,
.music-type label {
  color: var(--ink-2);
  float: none !important;
  display: inline-block !important;
  margin: 4px 5px !important;
  padding: 0 !important;
}
.neon-chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.neon-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.neon-chip span {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  transition: all .22s;
}
.neon-chip:hover span {
  border-color: var(--ink-2);
  color: var(--ink);
}
.neon-chip input:checked + span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
/* 更多音源：原生折叠 */
.music-more-src {
  display: inline-block;
  text-align: left;
}
.music-more-src > summary {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  transition: all .22s;
}
.music-more-src > summary::-webkit-details-marker {
  display: none;
}
.music-more-src > summary:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.music-more-src[open] > summary {
  color: var(--ink);
  border-color: var(--ink-2);
}
.more-src-inner {
  margin-top: 6px;
}

/* 提交按钮 —— 黑底白字，克制的淡阴影 */
#j-submit {
  margin-top: 16px !important;
  background: var(--accent) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 13px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all .25s !important;
}
#j-submit:hover,
#j-submit:active {
  background: var(--accent-dark) !important;
  box-shadow: 0 2px 10px rgba(15, 107, 80, .20) !important;
  transform: translateY(-1px);
}

/* ============ 结果卡片 ============ */
.music-main {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: var(--shadow);
}
/* 收起结果 —— 描边次要按钮 */
#j-back {
  background: #fff !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 10px !important;
  color: var(--ink-2) !important;
  font-weight: 500;
  box-shadow: none !important;
}
#j-back:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.music-main input {
  text-overflow: ellipsis;
}
.music-main .am-input-group-label {
  background: var(--soft) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
}
.music-main .am-form-field,
.music-main input[readonly] {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
}
.music-main input:focus,
.music-main input:hover {
  background: #fff !important;
  border-color: var(--ink-2) !important;
  color: var(--ink) !important;
}
.music-main .am-input-group-btn .am-btn-default {
  background: var(--soft) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
}

/* ============ 播放器 ============ */
.aplayer {
  padding: 10px !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--ink-2) !important;
  overflow: hidden;
}
.aplayer .aplayer-info .aplayer-music .aplayer-title,
.aplayer .aplayer-info .aplayer-music .aplayer-author {
  font-size: 15px !important;
  color: var(--ink) !important;
}
.aplayer .aplayer-list ol li .aplayer-list-index {
  display: inline-block;
  width: 20px;
  text-align: right;
}
.aplayer .aplayer-list {
  background: #fff !important;
}
.aplayer .aplayer-list ol li {
  border-top-color: var(--line) !important;
}
.aplayer .aplayer-list ol li.aplayer-list-light {
  background: var(--soft) !important;
}
.aplayer .aplayer-lrc p {
  color: var(--ink-2) !important;
}
.aplayer .aplayer-more {
  position: relative;
  font-size: 12px;
  padding: 8px 10px;
  margin-top: 10px;
  text-align: center;
  color: var(--ink-2) !important;
  cursor: pointer;
  border-top: 1px solid var(--line);
  -webkit-transition: color .3s;
  transition: color .3s;
}
.aplayer .aplayer-more:hover,
.aplayer .aplayer-more:active {
  color: #000 !important;
}
.aplayer.aplayer-withlrc .aplayer-pic {
  width: 110px !important;
  height: 110px !important;
  -webkit-box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .06);
  box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .06);
}
.aplayer.aplayer-withlrc .aplayer-info {
  margin-left: 110px !important;
  height: 110px !important;
}
.aplayer.aplayer-withlist .aplayer-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-bottom: 0 !important;
}
.aplayer.aplayer-withlist .aplayer-list {
  height: auto !important;
  padding-top: 20px;
  -webkit-transition: none;
  transition: none;
}
.aplayer.aplayer-withlist .aplayer-list-hide {
  padding: 0;
}

/* ============ 帮助区（原生折叠） ============ */
.music-help-fold {
  display: block;
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.music-help-fold > summary {
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.music-help-fold > summary::-webkit-details-marker {
  display: none;
}
.music-help-fold .help-arrow {
  color: var(--gray);
  transition: transform .25s;
}
.music-help-fold[open] .help-arrow {
  transform: rotate(180deg);
}
.music-tips {
  margin: 0 !important;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.music-tips p,
.music-tips li {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}
.music-tips p {
  margin-top: 14px;
}
.music-tips p b {
  font-weight: 600;
  color: #b42318;  /* 克制的砖红，标记音乐 ID */
}
.music-tips code {
  background: var(--soft);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.music-tips p span {
  display: inline-block;
  min-width: 50px;
  color: var(--ink-2);
}
.music-tips blockquote {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 12px;
  margin: 18px 0 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent) !important;
  border-radius: 0 8px 8px 0;
  background: var(--soft);
  color: var(--gray);
}
.music-tips blockquote p {
  margin: 2px 0;
}
.music-tips blockquote p b {
  color: var(--ink) !important;
  font-weight: 600;
}
.music-overflow {
  max-height: 66px;
  overflow: hidden;
}
.music-more {
  padding: 9px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2) !important;
  background: var(--soft) !important;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: all .25s;
}
.music-more:hover {
  background: #efeff2 !important;
}

/* ============ 提示 / 弹窗 / 页脚 ============ */
.am-alert {
  display: none;
}
.am-alert-danger {
  background: #fef3f2 !important;
  border-color: #fecdca !important;
  color: #b42318 !important;
  border-radius: 10px;
}
.am-popup,
.am-popup-inner {
  background: #fff !important;
  color: var(--ink) !important;
}
.am-popup-hd {
  background: var(--soft) !important;
}
.am-popup-bd {
  height: 100%;
  color: var(--ink-2);
}
.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  margin-top: 16px;
}
.footer p {
  color: var(--gray-2) !important;
  margin: 0;
  padding: 16px;
  text-align: center;
  background: transparent !important;
  font-size: 12px;
}
.footer p a {
  color: var(--gray) !important;
}
.footer p a:hover {
  color: var(--ink) !important;
}
.footer a {
  text-decoration: none;
}

/* ============ 小屏适配 ============ */
@media (max-width: 640px) {
  .about > .am-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  #j-validator,
  .music-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .music-tabs > li > a {
    font-size: 13px;
  }
}
