:root {
    --primary-color: #2c83e9;
    --secondary-color: #f8f9fa;
    --wechat-green: #09bb07;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* 全屏背景：使用伪元素为整个页面设置背景图片 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/1.jpg') center/cover no-repeat fixed;
    z-index: -2;
    filter: brightness(0.9);
}

/* 左侧宣传区：取消背景图片覆盖 */
.slogan-container {
    background: transparent;
    position: relative;
}

.slogan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    min-width: 600px;
}

/* 艺术字样式：字体加大至 7rem，并强制每行4个字符 */
. {
    font-family: 'ZhengRongArt', cursive;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    letter-spacing: 1.5px;
    font-size: 7rem;
    text-align: center;
    animation: textFloat 3s ease-in-out infinite;
}

/* 宋体字体样式 */
.font-songti {
    font-family: '宋体', 'ZhengRongArt', cursive;  /* 将字体改为宋体 */
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    letter-spacing: 1.5px;
    font-size: 7rem;
    text-align: center;
    animation: textFloat 3s ease-in-out infinite;
}


@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 登录卡片样式 */
.login-wrapper {
    max-width: 450px;
    width: 90%;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* 表单元素 */
.form-floating > label {
    padding-left: 2.5rem;
}

.form-control {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 131, 233, 0.25);
}

/* 微信登录样式 */
.wechat-login {
    color: var(--wechat-green);
    transition: opacity 0.3s ease;
}

.wechat-login:hover {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .slogan-container {
        display: none;
    }

    .login-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .art-font {
        font-size: 2.5rem;
        width: auto; /* 小屏下取消固定宽度 */
    }
}
/* 顶栏样式 */
.navbar {
    background-color: rgba(229, 225, 150, 0.85); /* 浅绿色，85% 不透明度 */
    font-family: 'ZhengRongArt','楷体', 'KaiTi', serif; /* 设置为楷体字体 */
    padding: 10px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.title {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* zheng.css 新增 */
#pwa-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.main-icon {
  width: 56px;
  height: 56px;
  background: #4A90E2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sub-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.func-item {
  width: 100px;
  height: 100px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.func-item:hover {
  transform: translateY(-4px);
  background: #e9ecef;
}

.dialog-container {
  position: fixed;
  bottom: 200px;
  right: 30px;
  width: 400px;
  max-height: 60vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  display: none;
  overflow: hidden;
}