@import url("./common.css");

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 100px;
}

main .data {
  display: grid;
  gap: 40px;
  grid-template-rows: 450px 450px;
  grid-template-columns: 1fr 470px 470px;
}

.main .huge-box {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

/* 每个块的通用样式 */
.data > div {
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.data > div:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* 标题部分 */
.data > div > .title {
  display: flex;
  height: 70px;
}

.data > div > .title > .topic {
  background: #1F88C9;
  line-height: 70px;
  width: 25%;
  min-width: 180px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.data > div > .title > .link {
  background: #e5e5e5;
  display: flex;
  flex-direction: row-reverse;
  flex-grow: 1;
}

.data > div > .title > .link > a {
  width: 25%;
  min-width: 90px;
  padding-right: 5px;
  height: 100%;
  text-align: center;
  line-height: 70px;
  font-size: 1rem;
  color: #8b8b8b;
}

.data > div > .title > .link > a:hover,
.data > div > .title > .link > a:active,
.data > div > .title > .link > a:visited {
  color: #8b8b8b;
}

/* 第一个块特殊的轮播图部分 */
.data > .huge-box > .image-content {
  padding: 15px;
  height: 435px;
}

/* 通用的文章列表 */
.data > div > .content {
  padding: 15px;
  flex-grow: 1;
}

.data > div > .content .item {
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: #dadada solid 3px;
}

.data > div > .content .item:hover {
  background: #f8f9fa;
  transition: all 0.5s ease;
}
.data > div > .content .item:hover .line {
  opacity: 1;
}

.data > div > .content .item > .date {
  min-width: 75px;
  max-width: 110px;
  text-align: center;
  font-size: 1.2rem;
  color: #3675bb;
  font-weight: bold;
  width: 23%;
}

.data > div > .content .item > .line {
  width: 4px;
  height: 55%;
  background: #dadada;
  opacity: 0.7;
}

.data > div > .content .item > .title {
  flex-grow: 1;
  font-size: 1.2rem;
  color: #2a2a2a;
  padding: 20px;
}
.data > div > .content .item > .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data > div > .content .item > .title a,
.data > div > .content .item > .title a:hover,
.data > div > .content .item > .title a:active
.data > div > .content .item > .titlea:visited,
.data > div > .content .item > .title:link {
  color: #2a2a2a;
}
.contact {
  display: grid;
  gap: 40px;
  grid-template-rows: 250px;
  grid-template-columns: 1fr 470px 470px;
  padding-top: 40px;
}

.contact > div {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.contact > .long {
  grid-column: 2 / 4;
}

.contact > div:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.contact > div > .title {
  height: 70px;
  background: #1F88C9;
  color: white;
  text-align: center;
  line-height: 70px;
  font-size: 1.8rem;
  font-weight: bold;
}

.contact > div > .content {
  position: relative;
  padding: 15px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact > .yqlj button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 230px;
  height: 55px;
  line-height: 55px;
  text-align: center;
  font-size: 1.5rem;
  color: #8b8b8b;
  border: #8b8b8b solid 2px;
  border-radius: 15px;
}

.contact > .yqlj button:hover {
  color: white;
  background: #3675bb;
  transition: all 0.3s ease;
}
#arrow {
  transition: transform 0.3s ease;
}

#arrow.rotated {
  transform: rotate(180deg);
}

.link-list {
  display: none; /* 默认隐藏 */
  position: absolute;
  top: -301px;
  width: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
  border-radius: 4px;
  z-index: 10; /* 确保在其他元素之上 */
  padding: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.link-list.show {
  display: block;
}

.link-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin-bottom: 5px;
}

.link-list li:last-child {
  margin-bottom: 0;
}

.link-list a {
  color: #333;
  text-decoration: none;
  padding: 5px 0;
  display: block;
}

.link-list a:hover {
  color: #0066cc;
}

#button {
  cursor: pointer;
}
.contact > .jyxc .information {
  display: flex;
  justify-content: space-evenly;
  width: 850px;
  height: 100%;
  padding: 15px;
}

.contact > .jyxc .information > .address {
  width: 60%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact > .jyxc .information > .address > .address {
  grid-column: 1/-1;
}

.contact > .jyxc .information > .address a,
.contact > .jyxc .information > .address a:hover,
.contact > .jyxc .information > .address a:visited,
.contact > .jyxc .information > .address a:active {
  color: #2a2a2a;
}

.contact > .jyxc .information > .img {
  width: 120px;
  height: 120px;
}

.contact > .jyxc .information > .img img {
  width: 100%;
  height: auto;
}
