/* 全局变量 */
:root {
  --primary-color: #4A6CF7;
  --primary-light: #6B8CFF;
  --primary-dark: #3A58E0;
  --secondary-color: #FF6B6B;
  --accent-color: #FFD166;
  --success-color: #06D6A0;
  --warning-color: #FFD166;
  --text-color: #2D3748;
  --text-secondary: #718096;
  --background: #F7FAFC;
  --card-bg: #FFFFFF;
  --card-bg-hover: #F8F9FA;
  --border-radius: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(74, 108, 247, 0.2);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #4A6CF7, #6B8CFF);
  --gradient-secondary: linear-gradient(135deg, #FF6B6B, #FF8E53);
  --gradient-accent: linear-gradient(135deg, #FFD166, #FFBB33);
  --gradient-success: linear-gradient(135deg, #06D6A0, #11B881);
  --glow: 0 0 15px rgba(74, 108, 247, 0.5);
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  background: var(--background);
  overflow-x: hidden;
}

/* 渐变背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px rgba(74, 108, 247, 0.3);
}

/* 顶部状态栏 */
.status-bar {
  padding: 0.2rem 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.16rem;
  font-weight: 500;
}

.status-bar .time {
  font-size: 0.18rem;
}

.status-bar .icons {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.status-bar .icons img {
  width: 0.2rem;
  height: 0.2rem;
}

/* 登录页面样式 */
.loginbg {
  background: var(--background);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
}

.loginbg .mui-icon-arrowthinleft:before {
  color: #fff;
  font-weight: bold;
  font-size: 0.24rem;
}

.loginbg .mui-bar-nav {
  box-shadow: none;
  background: transparent;
  color: #fff;
  border-bottom: none;
  height: 0.8rem;
  padding-top: 0.2rem;
}

.mui-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mui-content {
  background: none;
}

/* 登录表单 */
.loginContent {
  margin: 1rem 0.4rem 0;
  display: block;
  overflow: hidden;
  clear: both;
  background: var(--card-bg);
  padding: 0.5rem 0.4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.loginContent:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.loginContent .loginForm {
  padding: 0;
  border: 0;
  background: transparent;
}

.loginContent .loginForm .txt {
  padding: 0.25rem 0;
  display: block;
  overflow: hidden;
  clear: both;
  position: relative;
  border-bottom: 1px solid #e9ecef;
}

.loginContent .loginForm .txt:last-child {
  border-bottom: none;
}

.loginContent .loginForm .txt .phoneicon {
  width: 0.2rem;
  height: 0.28rem;
  float: left;
  background: url(../images/ic_register_phone.png) center center no-repeat;
  background-size: 0.2rem auto;
  filter: brightness(0.7);
}

.loginContent .loginForm .txt .passwordicon {
  width: 0.2rem;
  height: 0.28rem;
  float: left;
  background: url(../images/ic_login_psw.png) left center no-repeat;
  background-size: 0.2rem auto;
  filter: brightness(0.7);
}

.loginContent .loginForm .txt .iconCode {
  width: 0.2rem;
  height: 0.28rem;
  float: left;
  background: url(../images/ic_register_code.png) left center no-repeat;
  background-size: 0.2rem auto;
  filter: brightness(0.7);
}

.loginContent .loginForm .phoneText {
  border: none;
  width: calc(100% - 0.3rem);
  height: 0.28rem;
  line-height: 0.28rem;
  padding: 0 0 0 0.15rem;
  margin-bottom: 0;
  color: var(--text-color);
  font-size: 0.16rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: var(--transition);
}

.loginContent .loginForm .phoneText:focus {
  outline: none;
  background: #e9ecef;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.loginContent .loginForm .urse-txt {
  width: 100%;
}

/* 登录按钮 */
.loginbtn {
  margin: 0.6rem auto 0;
  display: block;
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.18rem 0;
  font-size: 0.16rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
  background: var(--gradient-primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.loginbtn:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.loginbtn:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 验证码按钮 */
.yanzhenbtn {
  float: right;
  border: none;
  font-size: 0.12rem;
  height: 0.32rem;
  line-height: 0.3rem;
  padding: 0 0.15rem;
  background: var(--gradient-secondary);
  color: #fff;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.yanzhenbtn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* 忘记密码链接 */
.fogetText_right,
.fogetText_left {
  text-align: center;
  margin-top: 0.3125rem;
  font-size: 0.14rem;
  padding-top: 0.08rem;
  line-height: 0.20rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.fogetText_right:hover,
.fogetText_left:hover {
  color: var(--primary-color);
}

.loginContent .loginForm .yanztxt {
  line-height: 0.28rem;
  width: 1.2rem;
}

.loginContent .loginForm .yanztxt .mininfo {
  color: var(--text-secondary);
  font-size: 0.14rem;
}

/* 首页样式 */
.graybg {
  background: var(--background);
}

.colorfont {
  color: var(--text-color);
}

.settingList {
  margin: 0;
}

/* 底部导航 */
.footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  max-width: 750px;
  height: 0.7rem;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  width: 95%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  border-radius: 20px 20px 0 0;
  margin-bottom: 0.1rem;
}

.footerlist {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.footerlist li {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.footerlist li:hover {
  transform: translateY(-3px);
}

.footerlist li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.13rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
}

.footerlist li a span {
  display: block;
  width: 0.3rem;
  height: 0.3rem;
  margin-bottom: 0.04rem;
  transition: var(--transition);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footerlist li a span::after {
  content: '';
  display: block;
  width: 0.2rem;
  height: 0.2rem;
  font-size: 0.16rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footerlist li a span.icon1::after {
  content: '';
  width: 0.14rem;
  height: 0.1rem;
  border: 2px solid currentColor;
  border-radius: 2px 2px 0 0;
  position: relative;
}

.footerlist li a span.icon1::after::before {
  content: '';
  position: absolute;
  bottom: -0.05rem;
  left: -0.03rem;
  width: 0.18rem;
  height: 0.03rem;
  border: 2px solid currentColor;
  border-radius: 0 0 2px 2px;
  border-top: none;
}

.footerlist li a span.icon2::after {
  content: '';
  width: 0.16rem;
  height: 0.12rem;
  border: 2px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.footerlist li a span.icon2::after::before {
  content: '';
  position: absolute;
  top: -0.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.08rem;
  height: 0.05rem;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.footerlist li a span.icon3::after {
  content: '';
  width: 0.1rem;
  height: 0.14rem;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.footerlist li a span.icon3::after::before {
  content: '';
  position: absolute;
  bottom: -0.07rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.14rem;
  height: 0.07rem;
  border: 2px solid currentColor;
  border-radius: 0 0 6px 6px;
  border-top: none;
}

.footerlist li.hover a span.icon1::after {
  border-color: white;
}

.footerlist li.hover a span.icon1::after::before {
  border-color: white;
}

.footerlist li.hover a span.icon2::after {
  border-color: white;
}

.footerlist li.hover a span.icon2::after::before {
  border-color: white;
}

.footerlist li.hover a span.icon3::after {
  border-color: white;
}

.footerlist li.hover a span.icon3::after::before {
  border-color: white;
}

.footerlist li.hover a {
  color: var(--primary-color);
}

.footerlist li.hover a span {
  background: var(--gradient-primary);
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
  transform: scale(1.1);
}

.footerlist li.hover a span::after {
  filter: brightness(0) invert(1);
}

.main {
  padding-bottom: 1rem;
}

/* 通知栏 */
.notices {
  margin: 0.3rem 0.4rem;
  padding: 0.2rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.notices::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.notices:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.notices-title {
  display: block;
  overflow: hidden;
  clear: both;
  padding: 0 0.1rem;
  line-height: 0.22rem;
  font-size: 0.14rem;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.notices-title span.icon {
  float: left;
  margin-right: 0.1rem;
  background: url(../images/ic_home_notice.png) left center no-repeat;
  width: 0.22rem;
  height: 0.22rem;
  background-size: 100% auto;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.noticeslist {
  margin: 0.1rem 0 0;
  display: block;
  overflow: hidden;
  font-size: 0.13rem;
  height: 0.36rem;
  line-height: 0.36rem;
  position: relative;
}

.noticeslist li {
  list-style: none;
  font-size: 0.13rem;
  color: var(--text-secondary);
  padding-left: 0.14rem;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 弹窗样式 */
.layout {
  padding: 0.3rem;
  color: var(--text-color);
  position: fixed;
  left: 50%;
  top: 50%;
  width: 85%;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-hover);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.layout .title {
  color: var(--primary-color);
  text-align: center;
  line-height: 0.3rem;
  font-size: 0.18rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-shadow: var(--glow);
}

.layout .textdiv {
  padding: 0.15rem 0;
  line-height: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.layout .textdiv:last-child {
  border-bottom: none;
}

.layout .textdiv label {
  float: left;
  width: 0.6rem;
  color: var(--text-secondary);
}

.layout .textdiv span {
  color: var(--text-color);
  font-weight: 500;
}

.button-grounp {
  margin: 0.3rem 0 0;
  display: flex;
  gap: 0.15rem;
}

.button-grounp button {
  flex: 1;
  padding: 0.12rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.14rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.mui-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.mui-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-color: var(--text-secondary);
}

.mui-btn-buy {
  color: var(--text-color);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-color: var(--primary-color);
  font-weight: 600;
}

.mui-btn-buy:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* Toast样式 */
.mui-toast-container {
  bottom: 50% !important;
}

.mui-toast-message {
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 0.15rem 0.25rem;
  font-size: 0.14rem;
  box-shadow: var(--shadow);
}

/* 响应式调整 */
@media (max-width: 375px) {
  .loginContent {
    margin: 0.4rem 0.3rem 0;
    padding: 0.3rem 0.2rem;
  }
  
  .footer {
    height: 0.7rem;
    width: 95%;
    margin-bottom: 0.1rem;
  }
  
  .main {
    padding-bottom: 1rem;
  }
  
  .notices {
    margin: 0.2rem 0.3rem;
    padding: 0.15rem;
  }
  
  .layout {
    width: 90%;
    padding: 0.25rem;
  }
  
  .navlist {
    margin: 0.2rem 0.3rem 0;
    gap: 0.15rem;
  }
  
  .navlist li {
    padding: 0.2rem 0;
  }
  
  .aibodylist {
    margin: 0 0.3rem;
  }
  
  .aibodylist li:first-child span {
    width: 0.7rem;
    height: 0.7rem;
    margin-left: 0.15rem;
  }
  
  .aibodylist li:first-child a {
    padding: 0.2rem 0.15rem;
  }
  
  .aibodylist li:first-child strong {
    font-size: 0.3rem;
  }
  
  .aifooter {
    margin: 0.3rem 0.3rem 0;
  }
  
  .aifooter button {
    padding: 0.15rem 0.5rem;
    font-size: 0.16rem;
  }
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 198, 255, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 选择文本样式 */
::selection {
  background: var(--primary-color);
  color: var(--text-color);
}

/* 焦点样式 */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}




