/* 灵动算法门户：页面宽度 1000px。配色取自 logo 深蓝 / 青 / 金。 */
:root {
  --navy: #071526;
  --navy-2: #0c2340;
  --navy-3: #0a1b30;
  --cyan: #1ec8f0;
  --mint: #3ddc97;
  --gold: #d4af37;
  --paper: #eef3f8;
  --ink: #1a2332;
  --muted: #5c6b7c;
  --line: #d7e1ec;
  --card: #ffffff;
  --page: 1000px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site {
  width: var(--page);
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #d5dee8, 0 8px 28px rgba(7, 21, 38, .08);
}

/* —— 页头 1000×72：左 logo+系统名+短线交易专家，右口号 —— */
.portal-header { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 24px; width: auto; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.brand-tag { font-size: 12px; color: var(--cyan); }
.slogan { color: #9ad8ef; font-size: 13px; text-align: right; max-width: 420px; }

/* —— 导航 1000×40：左栏目，右注册/登录或头像+昵称 —— */
.nav-bar { background: var(--navy-3); border-top: 1px solid rgba(30,200,240,.22); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 8px; }
.nav-left, .nav-right { display: flex; align-items: center; }
.nav-left a, .nav-right a, .nav-user {
  color: #d7eef7; padding: 0 10px; height: 40px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
}
.nav-left a:hover, .nav-right a:hover, .nav-left a.active { color: var(--cyan); }
.nav-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* —— Banner 1000×280，子页面同样套用 —— */
.hero { position: relative; width: 100%; overflow: hidden; background: var(--navy); }
.hero-track { display: flex; }
.hero-slide { min-width: 100%; }
.hero-slide img { width: 1000px; max-width: 100%; height: 280px; object-fit: cover; }
.hero-switch {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(7, 21, 38, .55); color: #fff; font-size: 26px; line-height: 32px;
}
.hero-switch:hover { background: rgba(7, 21, 38, .8); color: var(--cyan); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .55);
}
.hero-dots button.on { background: var(--cyan); }

.main { flex: 1 0 auto; padding: 16px 0 8px; }
.crumb { color: var(--muted); font-size: 12px; padding: 0 16px 8px; }
.crumb a { color: var(--navy); }
.crumb a:hover { color: var(--cyan); }

/* —— 通栏模块 —— */
.section { margin: 0 0 16px; background: var(--card); padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.player-screen { position: relative; }
.quiz-panel {
  position: absolute; inset: 0; z-index: 3; overflow: auto;
  padding: 16px 20px; background: rgba(255, 255, 255, .96); color: var(--ink);
}
.quiz-panel.quiz-off { display: none; }
.quiz-panel p { margin: 0 0 10px; font-weight: 700; }
.quiz-panel label { display: block; margin: 6px 0; }
.quiz-panel input[type=radio] { width: auto; margin-right: 6px; }
.quiz-panel .btn { margin-top: 10px; }
.course-done {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; color: #fff; font-size: 22px; font-weight: 700;
  background: rgba(7, 21, 38, .72);
}
.outline-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; }
.outline-current { background: #e7f7ff; font-weight: 700; border-left: 3px solid var(--cyan); }
.homework-col { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.homework-col p { margin: 0; font-size: inherit; font-weight: 400; text-align: left; }
.homework-col strong { font-weight: 700; }
.homework-col form { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-left: auto; }
.homework-col input[type=file] { width: auto; max-width: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.more { color: var(--cyan); font-size: 13px; }

/* 通知公告：横向时间轴，均匀 6 格 */
.timeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  background: url("../images/timeline-bar.png") center 10px / 100% 8px no-repeat;
  padding-top: 4px; min-height: 92px;
}
.tl-item { text-align: center; padding: 0 6px; }
.tl-dot {
  width: 14px; height: 14px; margin: 4px auto 8px;
  background: url("../images/timeline-dot.png") center / 14px 14px no-repeat;
}
.tl-item:hover .tl-title { color: var(--cyan); }
.tl-title { font-size: 12px; font-weight: 700; line-height: 1.35; min-height: 32px; }
.tl-date { font-size: 12px; color: var(--muted); }

/* 交易之星 | 交易金榜 左右对开 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.star-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.star-grid .star-left { width: 118px; flex: 0 0 118px; }
.star-grid .star-left img { width: 52px; height: 52px; }
.star-grid .sno { font-size: 11px; white-space: nowrap; word-break: keep-all; }
.star-card {
  display: flex; min-height: 108px; background: #f4f8fc; border: 1px solid var(--line); overflow: hidden;
}
.star-left { width: 56px; flex: 0 0 56px; background: var(--navy-2); color: #fff; text-align: center; padding: 6px 3px; }
.star-left img { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 4px; object-fit: cover; }
.star-left .sno { font-size: 9px; word-break: break-all; line-height: 1.2; }
.star-right { padding: 6px 6px; font-size: 11px; color: var(--muted); line-height: 1.45; overflow: hidden; }
.star-right strong { color: var(--ink); display: block; font-size: 12px; }
.star-grid-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.star-grid-list .star-left { width: 118px; flex: 0 0 118px; }
.star-grid-list .star-left img { width: 52px; height: 52px; }
.star-grid-list .sno { font-size: 11px; white-space: nowrap; word-break: keep-all; }
.star-verify { display: flex; align-items: center; gap: 12px; }
.star-verify span, .star-verify button { font-size: 16px; font-weight: 400; white-space: nowrap; }
.star-verify input { width: auto; flex: 1; min-width: 0; }
.star-verify button { background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; }
.rank-col { min-height: 232px; }
.rank-line, .high-line, .article-line { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.split-match > .rank-match { position: relative; }
.split-match > .rank-match > .rank-match-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0;
}
.split-match .rank-scroll { flex: 1; min-height: 0; overflow-y: auto; }

/* 广告条 1000×80 */
.adbar { display: block; margin: 0 0 16px; }
.adbar img { width: 1000px; max-width: 100%; height: 80px; object-fit: cover; }

/* 项目介绍 1000×200 */
.intro-banner { position: relative; display: block; }
.intro-banner img { width: 1000px; max-width: 100%; height: 200px; object-fit: cover; }
.intro-banner span {
  position: absolute; left: 20px; right: 20px; top: 0; bottom: 0;
  display: flex; align-items: center; color: #fff;
  font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.45); line-height: 1.5;
}

/* 项目流程：三图 + 两箭头 */
.process { display: flex; align-items: center; gap: 8px; }
.process-card { flex: 1; position: relative; overflow: hidden; transition: transform .2s; }
.process-card:hover { transform: scale(1.04); z-index: 1; }
.process-card img { width: 100%; height: auto; display: block; }
.process-card span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; color: #fff;
  font-size: 13px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.process-arrow { width: 56px; height: 56px; flex: 0 0 56px; display: block; }
.process-arrow svg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 2px 6px rgba(7, 21, 38, .28)); }

/* 在线课程 | 理论学习大纲：等宽 */
.course-home { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.course-home > div { min-width: 0; }
.course-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.course-card { background: #f4f8fc; border: 1px solid var(--line); overflow: hidden; }
.course-card img { width: 100%; height: 110px; object-fit: cover; }
.course-card p { margin: 0; padding: 6px 8px; font-size: 12px; }
.course-home > .outline-match { position: relative; }
.course-home > .outline-match > .outline-match-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0;
}
.course-home .outline { flex: 1; min-height: 0; position: relative; }
.course-home .outline a { display: block; height: 100%; }
.course-home .outline img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill;
}
.course-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.course-grid-5 .course-card img { height: 96px; }

/* 项目动态首条：左图右文 */
.news-first { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin-bottom: 8px; }
.news-first img { width: 160px; height: 100px; object-fit: cover; }

/* 合作伙伴：最多 8 列 */
.partners { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.partners img { width: 100%; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); }

.portal-footer { margin-top: auto; background: var(--navy); color: #9bb4c8; }
.footer-inner {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  align-items: center; min-height: 56px; padding: 10px 16px;
}
.footer-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.footer-item img { width: 20px; height: 20px; }

.list-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list-row { grid-template-columns: 148px 1fr auto; }
.news-list-cover { width: 148px; height: 84px; object-fit: cover; border-radius: 6px; }
.news-list-text strong { display: block; }
.news-list-text .muted { margin-top: 4px; }
.muted { color: var(--muted); }
.btn, button.btn, input[type=submit] {
  background: linear-gradient(90deg, var(--cyan), #1296c8);
  color: #042033; border: 0; border-radius: 4px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.btn.danger { background: #d35454; color: #fff; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; }
.flash { padding: 8px 14px; margin: 0 16px 12px; font-size: 13px; }
.flash-success { background: #e6fff3; color: #176b45; }
.flash-warning { background: #fff6e0; color: #8a5a00; }
.flash-danger { background: #ffecec; color: #a32020; }
.flash-info { background: #e7f7ff; color: #0b5f86; }
.form { display: grid; gap: 10px; max-width: 520px; }
.sms-line { display: flex; align-items: center; gap: 12px; }
.sms-line input { flex: 1; min-width: 0; width: auto; }
.sms-line button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.register-mask {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(7, 21, 38, .45); align-items: flex-start; justify-content: center;
  overflow: auto; padding: 48px 16px;
}
.register-mask.open { display: flex; }
.register-dialog { width: 480px; max-width: 100%; background: #fff; padding: 20px 20px 16px; position: relative; }
.register-dialog h2 { margin: 0 0 14px; font-size: 18px; }
.register-dialog .form { max-width: none; }
.register-close {
  position: absolute; right: 10px; top: 8px; border: 0; background: none;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted);
}
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; }
th { background: #eef5fb; }

/* —— 后台：页头 + 内容 + 页脚，宽 1000 —— */
.back-shell { min-height: 100vh; }
.back-top { background: var(--navy); color: #fff; }
.back-nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 48px; padding: 0 8px;
}
.back-nav a { color: #d7eef7; padding: 0 10px; height: 48px; display: inline-flex; align-items: center; font-size: 13px; }
.back-user { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; height: 48px; color: #fff; font-size: 13px; white-space: nowrap; }
.back-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.msg-nav { gap: 4px; }
.msg-icon { position: relative; width: 16px; height: 16px; display: inline-flex; }
.msg-icon svg { width: 16px; height: 16px; fill: currentColor; }
.msg-badge {
  position: absolute; top: -7px; right: -9px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 8px; background: #e74c3c; color: #fff; font-size: 10px; line-height: 14px;
  text-align: center; font-style: normal;
}
.read-form { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }
.read-switch {
  display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px 0 4px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted);
  font-size: 12px; line-height: 1; cursor: pointer; vertical-align: middle;
}
.read-form .read-switch { margin-left: 0; }
.read-switch::before {
  content: ""; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; background: #c5d0dc;
}
.read-switch.on { cursor: default; color: #176b45; border-color: #8ed7b5; background: #e6fff3; }
.read-switch.on::before { background: #3ddc97; }
.back-nav a.active, .back-nav a:hover { color: var(--cyan); }
.panel { background: #fff; padding: 16px; margin: 0 0 16px; border-top: 1px solid var(--line); }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.avatar-box { position: relative; width: 88px; height: 88px; }
.avatar-edit {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  border: 0; padding: 3px 0; cursor: pointer;
  background: rgba(7, 21, 38, .62); color: #fff; font-size: 12px; line-height: 1.4;
  border-radius: 44px 44px 0 0;
}
.avatar-picker { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.avatar-picker input { width: 1px; height: 1px; padding: 0; border: 0; }
.profile-actions { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; }
.profile-actions a, .profile-actions button {
  background: none; border: 0; padding: 0; color: var(--navy); font: inherit; cursor: pointer;
}
.profile-actions a:hover, .profile-actions button:hover { color: var(--cyan); }
#info-mask label { display: grid; gap: 4px; font-size: 13px; }
.hw-link { background: none; border: 0; padding: 0; color: var(--cyan); cursor: pointer; font: inherit; text-align: left; }
.hw-dialog { width: 860px; }
.score-table-wrap { overflow-x: auto; }
.score-table-wrap table { width: max-content; min-width: 100%; }
.score-table-wrap th, .score-table-wrap td { white-space: nowrap; }
.hw-table-wrap { max-height: 420px; overflow: auto; }
.hw-table-wrap table { font-size: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 10px; font-size: 13px; }
.info-grid .span-3 { grid-column: span 3; overflow-wrap: anywhere; }
.profile-split { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; align-items: start; }
.crop-dialog { width: 600px; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; overflow: hidden; line-height: 0; }
.crop-stage img { max-width: 560px; max-height: 360px; width: auto; height: auto; }
.crop-frame {
  position: absolute; border: 2px solid var(--cyan); cursor: move; touch-action: none;
  box-shadow: 0 0 0 999px rgba(7, 21, 38, .5);
}
.crop-handle {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  background: var(--gold); cursor: nwse-resize;
}
.crop-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.lock { position: relative; cursor: pointer; }
.lock::after {
  content: ""; position: absolute; inset: 0; background: rgba(7,21,38,.55);
}
.lock::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; background: #fff;
  -webkit-mask: url("../images/lock.svg") center / contain no-repeat;
  mask: url("../images/lock.svg") center / contain no-repeat;
}
.lock-glyph {
  display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("../images/lock.svg") center / contain no-repeat;
  mask: url("../images/lock.svg") center / contain no-repeat;
}
.tabs a { margin-right: 10px; color: var(--muted); }
.tabs a.active { color: var(--cyan); font-weight: 700; }
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.sign-pad { border: 1px dashed var(--line); background: #fff; width: 100%; height: 180px; touch-action: none; }

@media (max-width: 1024px) {
  .site { width: 100%; }
  .star-grid, .star-grid-list { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .info-grid, .course-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .course-home, .split, .two, .profile-split { grid-template-columns: 1fr; }
  .hero-slide img { height: 220px; }
}
@media (max-width: 767px) {
  .timeline { grid-template-columns: repeat(2, 1fr); background-image: none; }
  .process { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }
  .nav-left { flex-wrap: wrap; height: auto; }
  .nav-inner { height: auto; }
  .slogan { display: none; }
  .hero-slide img { height: 160px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .course-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
