/* 源码派 · 私有代码仓库 品牌皮肤
   仅覆盖配色与基础观感，不改动 Gitea 结构与交互 */

:root, body {
  --yp-primary: #6d3ef0;
  --yp-primary-dark: #5526c8;
  --yp-ink: #1a1225;
}

body {
  background: #f7f6fc !important;
  color: #2b2438;
}

/* 顶部导航：白底 + 淡紫分隔线 */
.ui.top.menu, .navbar, #navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #ece7f8 !important;
  box-shadow: 0 1px 0 rgba(109, 62, 240, 0.04);
}
.ui.top.menu .item, #navbar a {
  color: #3b3350 !important;
}
.ui.top.menu .item:hover, #navbar a:hover {
  color: #6d3ef0 !important;
}

/* 主色：按钮 */
.ui.primary.button, .ui.green.button, .ui.blue.button,
.button.primary, .button.green {
  background-image: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  background-color: #6d3ef0 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(109, 62, 240, 0.22) !important;
}
.ui.primary.button:hover, .ui.green.button:hover, .ui.blue.button:hover {
  background-image: linear-gradient(135deg, #8b4ff5 0%, #5b52f0 100%) !important;
}

/* 主色：链接与强调 */
a, a:hover { color: #6d3ef0; }
a:hover { text-decoration-color: rgba(109, 62, 240, 0.4); }

/* 分支名、标签等绿色标记统一成紫色 */
.ui.green.label, .ui.basic.green.button, .green.text {
  color: #6d3ef0 !important;
  border-color: rgba(109, 62, 240, 0.35) !important;
}
.ui.green.label { background: rgba(109, 62, 240, 0.1) !important; }

/* 登录页卡片 */
.gitea-login, .page-content .ui.container > .ui.segment,
.ui.segment {
  border-radius: 12px !important;
  border-color: #ece7f8 !important;
}
form.gitea-form, .ui.segment.form {
  border-radius: 12px !important;
  border: 1px solid #ece7f8 !important;
  box-shadow: 0 6px 24px rgba(109, 62, 240, 0.06) !important;
}

/* 输入框聚焦 */
input:focus, textarea:focus, .ui.input > input:focus {
  border-color: rgba(109, 62, 240, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(109, 62, 240, 0.12) !important;
}

/* 页脚弱化 */
.footer .ui.container, footer {
  color: #8a83a0 !important;
  border-top: 1px solid #ece7f8;
}

/* 登录页去掉多余的欢迎营销块，突出登录 */
.home .hero, .ui.negative.message {
  border-radius: 10px;
}

/* 卡片标题条去掉老式灰底，改白底深字 */
.ui.segment > .header, .ui.segment > .ui.header {
  background: #ffffff !important;
  color: #1a1225 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #f2eefb !important;
}

/* 表单标签更清晰 */
.ui.form .field > label {
  color: #3b3350 !important;
  font-weight: 500 !important;
}

/* 顶部功能入口弱化成文字按钮，去掉默认重底色 */
.ui.top.menu .item.active, #navbar .item.active {
  border-bottom: 2px solid #6d3ef0 !important;
  color: #6d3ef0 !important;
  background: transparent !important;
}

