/* ------------------通用配置------------------- */

:root{
--maincolor: #c7254e;
--bordercl:rebeccapurple;
--callouctcolor:dodgerblue;
--hovercolor:navy;
--darkMaincolor: #e06c75;
--codeblockcolor: rgba(236, 236, 236, 0.5);
--codeblockDarkcolor: rgba(60, 62, 66, 0.4);
--tablecolor: rgba(199, 37, 78, 0.15);
--tableDarkcolor: rgba(171, 186, 191, 0.2);
--titleDarkColor: #d3d5d7;
--mainArticleSize: 60%;
--rightSideSize: 14%;
--gMarginBottomSize: 12px;
--scrollbarColor: rgba(102, 102, 102, 0.3) #ffffff;
--scrollbarDarkColor: rgba(171, 186, 191, 0.2) #202124;
--tagColor: rgba(102, 102, 102, 0.2);
--tagDarkColor: rgba(171, 186, 191, 0.2);
--fontColor: #232333;
--fontDarkColor: #afafaf;
--mermaidLineColor: rebeccapurple;
--marmaidLineDarkColor: #9370DB;
}

html {
  color: var(--fontColor);
  font-family: 'Roboto Mono', 'PingFang SC';
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
}

body{
  display: block;
  overflow: hidden;
  height: 100vh;
  background-color: #fafafa;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarColor);
  margin:unset;
  word-break: break-all;
}

::selection {
  color: #fff;
  background: #c7254e;
}

::-moz-selection {
  color: #fff;
  background: #c7254e;
}

p {
  margin-bottom: var(--gMarginBottomSize);
}

svg {
  max-height: 15px;
}

time {
  color: grey;
}

h1 {
  margin-bottom: var(--gMarginBottomSize);
  font-size: 1.3rem;
  font-weight: 700;
  color: #232333;
}

h2 {
  margin-bottom: var(--gMarginBottomSize);
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d2d2d;
}

h3, h4, h5 {
 margin-bottom: var(--gMarginBottomSize);
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
}

/* ------------------标签图标配置------------------- */
.feather-tag {
  transform: scaleX(-1);
}

/*--------------------引用块配置（极简）--------------------- */
blockquote {
  background: rgba(199, 37, 78, 0.04);
  color: #666;
  padding: 0.6em 0.8em;
  margin-bottom: 0.8em;
  border-left: 2px solid rgba(199, 37, 78, 0.2);
  border-radius: 0;
  box-shadow: none;
}

blockquote::before {
  display: none;
}

blockquote p {
  margin: 0;
}

/*-------------------a标签配置------------------- */

a {
  color: #c7254e;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a:hover {
  color: #a31545;
}

/* --------------------分割线配置（极简）------------------- */
hr {
  border: 0;
  margin-bottom: 0.8em;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/*----------------无序列表配置（极简）------------------- */
ul {
  list-style: none;
  padding-left: 1.2ch;
  margin-bottom: var(--gMarginBottomSize);
}

ul > li::before {
  content: '·';
  font-weight: normal;
  color: #ccc;
  font-size: 1em;
  margin-right: 4px;
}

/*--------------------表格配置（极简）---------------------*/
table {
  margin-bottom: 0.8em;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

table th, table td {
  padding: 6px 10px;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

table tr:last-child td {
  border-bottom: none;
}

table th {
  color: var(--fontColor);
  background: rgba(0, 0, 0, 0.03);
  font-weight: 500;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

table tr:nth-child(even) {
  background-color: transparent;
}

table tr:hover {
  background-color: rgba(199, 37, 78, 0.04);
}

/* --------------------图片配置（极简）------------------- */
img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

img:hover {
  transform: none;
  box-shadow: none;
}

.image-container {
  border-width: 1px;
  border-style: solid;
  border-radius: 0;
  border-color: rgba(0, 0, 0, 0.06);
  max-width: 100%;
  max-height: 50vh;
  background-color: white;
  box-shadow: none;
}

/* --------------------common配置（极简） ------------ */
.commonMain {
  margin-bottom: var(--gMarginBottomSize);
  height: 90vh;
  overflow-y: auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5em 0 0 0;
}

.commonArticle {
  width: var(--mainArticleSize);
  margin-left: auto;
  margin-right: 0;
}

.commonRightSide {
  top: 0em;
  color: #334155;
  position: sticky;
  align-self: flex-start;
  width: var(--rightSideSize);
  margin-right: auto;
}

.commonRightSide .content ul {
  margin-top: unset;
}

.commonRightSide .content li::before{
  content: none;
}