.com-home-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom: 40px;
}
.com-home-card {
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(21,101,192,0.10);
  padding: 40px 48px;
  gap: 48px;
  align-items: center;
  max-width: 100%;
  width: 100%;
}
.com-home-avatar-wrap {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(21,101,192,0.07);
}
.com-home-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(21,101,192,0.08);
}
.com-home-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.com-home-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #1976d2;
}
.com-home-cert {
  color: #388e3c;
  background: #e8f5e9;
  border-radius: 10px;
  padding: 4px 14px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.com-home-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #444;
}
.com-home-label {
  color: #888;
  font-weight: 500;
  min-width: 70px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.com-home-value {
  color: #222;
  font-weight: bold;
}
.com-home-tel {
  letter-spacing: 2px;
  font-size: 18px;
  font-family: 'Consolas', 'monospace';
}
.com-home-contact-btn {
  margin-left: 18px;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,101,192,0.07);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
}
.com-home-contact-btn:hover {
  background: linear-gradient(90deg, #1251a3 0%, #1976d2 100%);
  color: #fff;
}
.com-home-desc {
  align-items: flex-start;
  line-height: 1.8;
}
/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33, 33, 33, 0.45);
  z-index: 1;
}
.modal-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(21,101,192,0.18);
  padding: 40px 38px 32px 38px;
  min-width: 340px;
  max-width: 92vw;
  text-align: center;
  animation: modalIn 0.22s cubic-bezier(.4,2,.6,1) both;
}
@keyframes modalIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-title {
  font-size: 22px;
  color: #d32f2f;
  font-weight: bold;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.modal-title i {
  color: #ff9800;
  font-size: 24px;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(21,101,192,0.07);
}
.modal-btn.login {
  background: #1976d2;
  color: #fff;
}
.modal-btn.login:hover {
  background: #1251a3;
}
.modal-btn.register {
  background: #e0e0e0;
  color: #1976d2;
}
.modal-btn.register:hover {
  background: #bdbdbd;
}
.modal-btn.recharge {
  background: #ff9800;
  color: #fff;
}
.modal-btn.recharge:hover {
  background: #e68900;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  transition: color 0.18s;
}
.modal-close:hover {
  color: #d32f2f;
}
@media (max-width: 900px) {
  .com-home-card {
    flex-direction: column;
    gap: 22px;
    padding: 18px 8px;
    max-width: 98vw;
  }
  .com-home-avatar-wrap {
    width: 120px;
    height: 120px;
  }
  .com-home-avatar {
    width: 90px;
    height: 90px;
  }
  .com-home-title-row {
    font-size: 20px;
  }
  .modal-dialog {
    min-width: 0;
    width: 92vw;
    padding: 18px 6vw 16px 6vw;
  }
  .modal-title {
    font-size: 17px;
  }
  .modal-btn {
    font-size: 14px;
    padding: 7px 12px;
  }
  .modal-actions {
    gap: 10px;
  }
}

.latest-section {
  margin-top: 48px;
}
.latest-title {
  font-size: 22px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.latest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px 24px;
}
.latest-bg {
  background: linear-gradient(90deg, #f8fafc 0%, #f3f7fa 100%);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(21,101,192,0.06);
  padding: 36px 32px 28px 32px;
  margin-top: 48px;
}
.latest-cols {
  display: flex;
  gap: 40px;
}
.latest-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.latest-card {
  display: flex;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21,101,192,0.07);
  overflow: hidden;
  transition: box-shadow 0.18s;
  min-width: 0;
}
.latest-card:hover {
  box-shadow: 0 4px 24px rgba(21,101,192,0.13);
}
.latest-img-link {
  display: block;
  min-width: 140px;
  max-width: 180px;
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
  background: #f5f5f5;
}
.latest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.latest-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  min-width: 0;
}
.latest-title-link {
  text-decoration: none;
  color: #222;
}
.latest-title-link:hover .latest-card-title {
  color: #1976d2;
  text-decoration: underline;
}
.latest-card-title {
  font-size: 17px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-card-tags {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-card-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #bbb;
}
.latest-card-pub i, .latest-card-date i {
  margin-right: 4px;
  color: #ff9800;
}
@media (max-width: 900px) {
  .latest-bg {
    padding: 16px 4px 10px 4px;
    margin-top: 24px;
  }
  .latest-cols {
    flex-direction: column;
    gap: 18px;
  }
  .latest-col {
    gap: 16px;
  }
  .latest-img-link {
    min-width: 90px;
    max-width: 110px;
    width: 110px;
    height: 70px;
  }
  .latest-info {
    padding: 10px 8px 8px 8px;
  }
  .latest-title {
    font-size: 18px;
  }
} 