@charset "utf-8";

html,
body,
div, dl, dt, dd
{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
ul {
  list-style: none;
}
#wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url(/img/texture.png);
  transition: background-color 2s ease-in;
  background-color: #ddd;
}
#header-nav {
  margin: 0 auto;
  padding: 12px;
  text-align: center;
}
#header-nav a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 0 12px;
  text-shadow: 1px 1px 1px #686868;
}
.nav-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}
#nav-links-container .link-group {
  display: none; /* 默认隐藏所有链接组 */
  gap: 20px;     /* 给链接之间增加一些间距 */
}
#nav-links-container .link-group.active {
  display: flex; /* 只显示激活的那个链接组，并让内部的 a 标签也用 flex 布局 */
}


/* 3D Toggle Button */
.toggle-3d-button {
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin: 0 12px;
  text-shadow: 1px 1px 1px #686868;
  background: none;
}

/* 3D Container */
.bagua-3d-container {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  z-index: 5;
  background: transparent;
  cursor: grab;
}

.bagua-3d-container canvas {
  display: block;
  outline: none;
}
#container {
  position: relative;
  width: 960px;
  height: 100%;
  margin: 0 auto;
}
#colors {
  width: 480px;
  height: 100%;
  left: -23px;
  top: 0;
  margin-top: 0;
  /*transform-style: preserve-3d;*/
  /*-webkit-animation: color-rotate 10s infinite linear;*/

}
#colors li {
  cursor: pointer;
  position: absolute;
  /*display: inline-block;*/
  margin-top: 52px;
  margin-right: 20px;
  width: 50px;
  height: 40px;
  background-repeat: no-repeat;
  list-style: none;
}
#colors li a {
  opacity: .8;
  display: block;
  overflow: hidden;
  width: 50px;
  height: 278px;
  color: #fff;
  transition: background-color 0.15s linear;
  padding-left: 1.8em;
  text-decoration: none;
}
#colors li.activeLi a .name {
  color: white !important;
  text-shadow: 1px 1px 1px #686868;
}
#colors li a .name {
  opacity: 0.6;
  font-family: "Microsoft YaHei", "微软雅黑", Helvetica;
  padding-top: 1em;
  display: block;
  width: 1em;
}
#colors li a .pinyin, #colors li a .rgb {
  position: absolute;
  top: 148px;
  display: block;
  width: 1em;
  font-family: arial;
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  text-transform:uppercase;
}

#colors li a .pinyin {
  font-size: 0.8em;
}
#colors li a .rgb {
  right: 35px;
  font-size: 11px;
  font-family: Helvetica;
}
#colors li a:hover {
  opacity: .3;
  transition-duration: 0.3s;
  transition-property: color, background-color, opacity;
}
#colors li div {
  background: url(/img/col_bg.png) no-repeat;
}
#colors li div canvas {
  position: absolute;
  top: 0px;
  left: 0px;
}
#logo {
  position: absolute;
  text-indent: -9999px;
  left: 909px;
}
#logo h1 {
  background: url(/img/logo.png) no-repeat;
  height: 520px;
  width: 60px;
  position: fixed;
}

#data {
  position: absolute;
  left: 504px;
  top: 52px;
  height: 507px;
  width: 410px;
}
#data h2 {
  position: fixed;
  color: #fff;
  text-shadow: .5px .5px .5px #333;
  /*margin: 150px 0px 0px 200px;*/

}
#data h2 #name {
  font-family:'lixukexingshu1b969ad7dc1c3e5';
  font-weight: normal;
  font-size: 100px;
  color: #fff;

  margin: 0 auto;
  display: block;
  width: 110px;
  text-align: center;
  background-position: center top;
  background-repeat: no-repeat;
}
#data h2 #pinyin {
  font-size: 16px;
  display: block;
  width: 440px;
  padding-top: 10px;
  text-align: center;
  font-family: Georgia;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
}
#data #color-value {
  position: fixed;
  z-index: 500;
  width: 100px;
  margin-left: 0;
}
#CMYKcolor {
  width: 50px;
  border-top: 0.5px solid #fff; 
}
#CMYKcolor dt {
  width: 10px;
  height: 9px;
  margin: 10px 0 6px 0;
  color: #fff;
  font-size: 10px;
  -webkit-font-smoothing: antialiased;
}
#CMYKcolor dt .c {
  background-position: 0 0;
}
#CMYKcolor dt .m {
  background-position: -10px 0;
}
#CMYKcolor dt .y {
  background-position: -20px 0;
}
#CMYKcolor dt .k {
  background-position: -30px 0;
}
#CMYKcolor dd {
  font-family: "myriad-pro-1", "myriad-pro-2", sans-serif;
  font-size: 24px;
  font-weight: 300;
  height: 50px;
  line-height: 50px;
  overflow: hidden;
  padding: 0 0 11px 0;
  position: relative;
  text-align: center;
  vertical-align: middle;
  border-bottom: 0.5px solid #fff; 
}
#CMYKcolor dd.c {
  color: #0093D3;
}
@property --p {
  syntax: '<integer>';
  inherits: true;
  initial-value: 0;
}

.progress-ring {
  --size: 50px;
  --thickness: 0.1px;
  --bg-clr: rgba(255, 255, 255, 0.1);
  
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--clr);
  border-radius: 50%;
  position: relative;
  
  /* 动画过渡效果 */
  transition: --p 1s ease-in-out;

  transform: translateZ(0);
}

/* * 绘制进度条和背景轨道
* 使用 conic-gradient 创建一个从起始色到结束色的渐变
* 进度由 --p 变量控制
*/
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
      var(--clr) calc(var(--p) * 1%), 
      var(--bg-clr) 0%
  );
  
  /* 使用 mask 裁切出圆环形状 */
  -webkit-mask: radial-gradient(transparent calc(60% - var(--thickness) - 0.5px), white calc(60% - var(--thickness) + 0.5px));
  mask: radial-gradient(transparent calc(60% - var(--thickness) - 0.5px), white calc(60% - var(--thickness) + 0.5px));
}

#CMYKcolor dd .cont {
  display: block;
  height: 50px;
  position: relative;
  width: 50px;
  z-index: 500;
}

#RGBcolor {
  position: relative;
  width: 236px;
}
#RGBcolor dt {
  height: 9px;
  margin: 10px 0px 6px 0px;
  width: 10px;
  color: #fff;
  font-size: 10px;
  -webkit-font-smoothing: antialiased;
}
#RGBcolor dt .r {
  background-position: -40px 0;
}
#RGBcolor dt .g {
  background-position: -50px 0;
}
#RGBcolor dt .b {
  background-position: -60px 0;
}
#RGBcolor dd {
  color: #FFF;
  font-family: "myriad-pro-1", "myriad-pro-2", sans-serif;
  font-size: 24px;
  font-weight: 300;
  height: 24px;
  line-height: 100%;
  overflow: hidden;
  padding: 0 1px 11px 1px;
  position: relative;
  text-align: right;
  width: 50px;
  z-index: 500;
  border-bottom: 0.5px solid #fff; 
}
#RGBcolor #RGBvalue {
  height: 61px;
  left: 60px;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px 0 19px;
  position: absolute;
  top: 50px;
  -webkit-transition: opacity 0.2s linear;
  width: 147px;
}
#RGBcolor #RGBvalue input {
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 21px;
  width: 120px;
  -webkit-font-smoothing: antialiased;
}
#RGBcolor dd.r ::selection {
  background: #F00;
}
#RGBcolor dd.g ::selection {
  background: #0F0;
}
#RGBcolor dd.b ::selection {
  background: #00F;
}

footer {
  position: absolute;
  left: 595px;
  top: calc(90vh);
  color: #fff;
  font-size: 10px;
}
footer a {
  color: #fff;
}
footer p {
  position: fixed;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  #wrapper {
    overflow-x: hidden;
  }
  
  #container {
    width: 100%;
    overflow-x: hidden;
  }
  
  #colors {
    left: 0;
    width: 100%;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    height: 320px;
    -webkit-overflow-scrolling: touch;
  }
  
  #colors li {
    position: relative;
    display: inline-block;
    margin: 40px 10px 0 10px;
    vertical-align: top;
  }
  
  #data {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 20px 0;
    text-align: center;
  }
  
  #data h2 {
    position: relative;
    width: 100%;
  }
  
  #data h2 #name {
    margin: 0 auto;
  }
  
  #data h2 #pinyin {
    width: 100%;
  }
  
  #data #color-value {
    position: relative;
    margin: 20px auto;
    width: 80%;
    max-width: 300px;
  }
  
  #data #color-value {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  #CMYKcolor, #RGBcolor {
    margin: 0;
    display: inline-block;
    width: auto;
  }
  
  /* Adjust spacing for mobile view */
  #CMYKcolor dt, #RGBcolor dt {
    margin-right: 5px;
  }
  
  #CMYKcolor dd, #RGBcolor dd {
    margin-bottom: 10px;
  }
  
  #logo {
    display: none;
  }
  
  footer {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
  }
  
  footer p {
    position: relative;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  #colors li {
    margin: 40px 5px 0 5px;
  }
  
  #data h2 #name {
    font-size: 80px;
  }
}

.odometer.odometer-auto-theme, .odometer.odometer-theme-default {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.odometer.odometer-auto-theme .odometer-digit, .odometer.odometer-theme-default .odometer-digit {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer, .odometer.odometer-theme-default .odometer-digit .odometer-digit-spacer {
  display: inline-block;
  vertical-align: middle;
  visibility: hidden;
}
.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner, .odometer.odometer-theme-default .odometer-digit .odometer-digit-inner {
  text-align: left;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon, .odometer.odometer-theme-default .odometer-digit .odometer-ribbon {
  display: block;
}
.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner, .odometer.odometer-theme-default .odometer-digit .odometer-ribbon-inner {
  display: block;
  -webkit-backface-visibility: hidden;
}
.odometer.odometer-auto-theme .odometer-digit .odometer-value, .odometer.odometer-theme-default .odometer-digit .odometer-value {
  display: block;
  -webkit-transform: translateZ(0);
}
.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value, .odometer.odometer-theme-default .odometer-digit .odometer-value.odometer-last-value {
  position: absolute;
}
.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner, .odometer.odometer-theme-default.odometer-animating-up .odometer-ribbon-inner {
  -webkit-transition: -webkit-transform 2s;
  -moz-transition: -moz-transform 2s;
  -ms-transition: -ms-transform 2s;
  -o-transition: -o-transform 2s;
  transition: transform 2s;
}
.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner, .odometer.odometer-theme-default.odometer-animating-up.odometer-animating .odometer-ribbon-inner {
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
}
.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner, .odometer.odometer-theme-default.odometer-animating-down .odometer-ribbon-inner {
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
}
.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner, .odometer.odometer-theme-default.odometer-animating-down.odometer-animating .odometer-ribbon-inner {
  -webkit-transition: -webkit-transform 2s;
  -moz-transition: -moz-transform 2s;
  -ms-transition: -ms-transform 2s;
  -o-transition: -o-transform 2s;
  transition: transform 2s;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.odometer.odometer-auto-theme, .odometer.odometer-theme-default {
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.1em;
}
.odometer.odometer-auto-theme .odometer-value, .odometer.odometer-theme-default .odometer-value {
  text-align: center;
}


/* 3D Mode Styles */
.bagua-3d-active #logo {
  display: none;
}
.bagua-3d-active #data {
  position: fixed;
  left: 50%;
  top: 16%;
  z-index: 10;
  pointer-events: none; /* Allow interaction with 3D scene behind */
}

.bagua-3d-active #data h2 {
  position: relative;
  text-align: center;
}

.bagua-3d-active #data h2 #name {
  font-size: 80px; /* Slightly smaller for 3D mode */
  margin: 0;
}

.bagua-3d-active #data h2 #pinyin {
  display: none;
}

.bagua-3d-active #data #color-value {
  display: none; /* Hide color values in 3D mode */
}

