/* 自定义样式覆盖 Bootstrap */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.page {
  flex: 1;
  padding: 20px;
}

.hidden {
  display: none;
}

table {
  width: 100%;
  margin-bottom: 20px;
}

th, td {
  padding: 8px;
  text-align: center;
}

#footer-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

button {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
}

button:hover {
  background-color: #0056b3;
}


/* 老的页面style */ 


:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
}

body {
  background: #f5f6fa;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.input-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
}

#stockCode {
  flex: 1;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

#stockCode:focus {
  border-color: var(--secondary-color);
  outline: none;
}

button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.9;
}

.data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
/* 卡片样式优化 */
.card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card.highlight {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.money-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }

    .money-value {
        font-size: 1.2rem;
    }
}

.loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.error {
  color: #e74c3c;
  text-align: center;
  margin-top: 15px;
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f5f5f5;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.appmsg_card_context {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appmsg_card_context:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.wx_profile_card_inner {
  padding: 20px;
}

.wx_profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.wx_profile_hd {
  margin-right: 16px;
}
    
.wx_profile_avatar {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  /* 关键修改：直接引用外部链接 */
  background: url('/static/images/laowang.png') center/cover no-repeat;
}

.wx_profile_bd {
  flex: 1;
}

.wx_profile_nickname_wrp {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.wx_profile_nickname {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.wx_follow_verify {
  margin-left: 8px;
  background: #07C160;
  color: #fff;
  font-size: 12px;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 400;
}

.wx_profile_desc {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wx_profile_tips {
  font-size: 14px;
  color: #999;
}

.wx_profile_tips_meta {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.weui-icon-arrow {
  color: #bbb;
  font-size: 20px;
  margin-left: 8px;
}

.wx_profile_card_ft {
  border-top: 1px solid #33c0b1;
  padding-top: 15px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
}

.wx_profile_card_ft::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-color: #07C160;
  border-radius: 4px;
  position: relative;
}

.wx_profile_card_ft::after {
  content: "公";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  transform: translate(3px, -10px);
}


/* 右侧滑动页面样式 */
.right-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.right-sidebar.visible {
  transform: translateX(0);
}

.right-sidebar-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.hidden {
  display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 登录状态样式 */
#login-status {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

#user-info img {
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 300px;
}

.modal-content {
    text-align: center;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    resize: none;
}


/* 针对分页按钮的样式处理 */
.layui-laypage .layui-laypage-btn {
    background-color: #007bff !important; /* 设置按钮背景颜色 */
    color: #fff !important; /* 设置按钮字体颜色 */
    border: 1px solid #007bff; /* 设置按钮边框颜色 */
    border-radius: 4px; /* 设置按钮圆角 */
    padding: 5px 10px; /* 调整按钮内边距 */
    cursor: pointer; /* 鼠标样式 */
}

.layui-laypage .layui-laypage-btn:hover {
    background-color: #0056b3 !important; /* 鼠标悬停时背景颜色 */
    border-color: #0056b3; /* 鼠标悬停时边框颜色 */
}

.money-value-small {
    font-size: 12px;
    margin-top: 4px;
}

