/*
 * 主应用样式 - 农业服务平台
 * 色彩方案: 深绿色(#2A5D3C)、麦穗金(#D4AF37)、大地棕(#8B4513)、天空蓝(#EFF8FB)
 */

/* 全局样式 */
:root {
  --primary-color: #2A5D3C;
  --secondary-color: #D4AF37;
  --tertiary-color: #8B4513;
  --light-color: #EFF8FB;
  --danger-color: #E74C3C;
  --success-color: #27AE60;
  --paper-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zDMZAAABvklEQVR4nIVWi5KDIAzFFVSQt9r9/w/dJICirbtOZ0YbILnn3kCMCZVcZ0A1QpjYj0oiOgeF8gK3xBjvaNPttNquLr1NS6zR/YwQStYV1ySxoUUQrJeB2ibiJQxWNEL+jIQI6ogYEST6HNP0K1HNJUUUCEgpB0JKGg8BfJ8ROsHSbFhZda4VQ+/SQlbkY2yDGHgQ8pJ/TVKZuYQk0gBYlX1ZALVaEDVd4ARo4BpQ0cRQpiCC5JvM3f4zT5a0QLgQHooJLjBWXsCSXZ2QrDKn8IJ+PgWUOJfgAwR3o4gKOGH4QXJBDtYO1WSBCyBezrLITulVIkXO+OGSJ46WhxKGXQKX08XRHFJBi1LULUskCFLeSDE1YkRNtRKlKE3T1qIkaSqJUdI0+xKlKHkbfA7r7jnU5C0vIr3MQmbbwzwg9Fl9J2OSBTS6YAB9KPCCWUJ0xC1jzbXPxbYL1O3sB8ZtJ/GP8I7SHnXZ+59v3rGmxt69sE3uzwsuYP4kJ8QpvaeWc0ux38ad+rqiKJoC2sqvV3f6+VnJUjjb0qtwWEMpXUeSrPyoymxM6vPTt7d7dN7n8g3+AYwIHgAAAABJRU5ErkJggg==');
}

/* 通用文本样式 */
body {
  font-family: "思源黑体", "Source Han Sans", "阿里巴巴普惠体", "Alibaba PuHuiTi", sans-serif;
  color: #333;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* 适老化大按钮样式 */
.btn-large {
  min-height: 88px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 页面内容区域 */
.page-content {
  padding-top: 60px; /* 适应顶部标题栏 */
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #666;
  transition: color 0.3s;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item .icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

/* 顶部标题栏 */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.back-button {
  margin-right: 16px;
  font-size: 1.5rem;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
  margin-right: 32px; /* 平衡返回按钮的空间 */
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 16px;
}

/* 特定元素样式 */
.paper-card {
  background-color: white;
  background-image: var(--paper-texture);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wheat-divider {
  height: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0,5 C20,0 35,10 50,5 C65,0 80,10 100,5" stroke="%23D4AF37" fill="none" stroke-width="1"/></svg>');
  background-repeat: repeat-x;
  background-size: auto 100%;
  margin: 16px 0;
}

/* 官方认证标识 */
.official-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.official-badge i {
  margin-right: 4px;
  font-size: 0.8rem;
}

/* 专家认证标识 */
.expert-badge {
  display: flex;
  align-items: center;
}

.expert-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}

.expert-info {
  margin-left: 8px;
}

.expert-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.expert-title {
  font-size: 0.7rem;
  color: #666;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.loading-animation {
  width: 80px;
  height: 80px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C50,10 10,30 10,50 C10,70 30,90 50,90 C70,90 90,70 90,50 C90,30 50,10 50,10 Z" fill="none" stroke="%232A5D3C" stroke-width="4"><animate attributeName="stroke-dasharray" from="0,300" to="300,0" dur="3s" repeatCount="indefinite"/></path></svg>');
  background-size: contain;
  margin-bottom: 16px;
}

.loading-text {
  color: var(--primary-color);
  font-size: 1rem;
}

/* 进度条样式 */
.progress-bar {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar-inner {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 活动距离标签 */
.distance-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.distance-tag i {
  margin-right: 4px;
}

/* 红旗装饰 */
.red-flag {
  width: 100%;
  height: 30px;
  position: relative;
  overflow: hidden;
  background-color: #E74C3C;
}

.red-flag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 5"><path d="M0,5 C10,2 20,0 30,2 C40,4 50,5 60,3 C70,1 80,0 90,2 C100,4 100,5 100,5 L0,5 Z" fill="%23C0392B"/></svg>');
  background-repeat: repeat-x;
  background-size: 20px 5px;
}

/* 政府LOGO墙 */
.footer-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
}

.logo-name {
  font-size: 0.6rem;
  color: #666;
  text-align: center;
} 