/* Components CSS - 通用组件 */

/* === 按钮 - 统一圆角10px === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 36px;
  min-height: 36px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow-primary-lg);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--secondary {
  font-weight: 400;
  font-size: 14px;
  color: #0C1422;
  line-height: 20px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.btn--white {
  width: 120px;
  height: 36px;
  background-color: #0E9AFF;
  color: #FFFFFF;
  box-shadow: none;
  border-radius: 10px;
  font-weight: 400;
  font-size: 14px;
}
.btn--white:hover {
  background-color: #0E9AFF;
  box-shadow: none;
  transform: none;
}

.btn--lg {
  padding: 18px 48px;
  font-size: var(--font-size-lg);
}

/* === Section 标题 - 更精致的样式 === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: 40px;
  color: #0C1422;
  letter-spacing: 0.62px;
  text-align: center;
  font-weight: 600;
}

.section-subtitle {
  font-size: 16px;
  color: rgba(12,20,34,0.45);
  letter-spacing: 0.25px;
  text-align: center;
  font-weight: 400;
  margin-top: 24px;
}

/* ========== 新增页面正文部分样式 ========== */
/* Page Section */
.page-section {
  padding: 90px 0;
}

.page-section--gray {
  background-color: var(--color-bg-light);
}

.page-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-section__header {
  text-align: center;
  margin-bottom: 50px;
}

/* News Card */
.news-page-section {
  width: 1440px;
  margin: 0 auto;
  padding: 90px 0 32px;
}

.news-page-section .news-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.news-page-section .news-card {
  height: 247px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
}

.news-page-section .news-card:hover {
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box, /* 内部背景 */
    linear-gradient(180deg, rgba(32, 202, 255, 1), rgba(14, 154, 255, 1)) border-box;
}

.news-page-section .news-card__image {
  width: 300px;
  height: 200px;
  margin-right: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.news-page-section .news-card__image img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.news-page-section .news-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-page-section .news-card__title {
  font-weight: 600;
  font-size: 24px;
  color: #0C1422;
  line-height: 29px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-page-section .news-card__desc {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 24px;
  margin-top: 24px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.news-page-section .news-card__meta {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.news-page-section .news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 16px;
  color: #0E9AFF;
  line-height: 20px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-page-section .news-card__link img {
  width: 16px;
  height: 16px;
  display: block;
}

.news-page-section .news-card__link:hover {
  text-decoration: none;
}

.news-page-section .news-card__date {
  display: none;
}

/* Honor Card */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.honor-card {
  width: 342px;
  height: 284px;
  padding: 24px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E9EFF7;
}

.honor-card__image {
  width: 294px;
  height: 180px;
}

.honor-card__image img {
  max-width: 100%;
  max-height: 100%;
}

.honor-card__info {
  margin-top: 16px;
  text-align: center;
}

.honor-card__title {
  max-width: 294px;
  font-weight: 600;
  font-size: 14px;
  color: #0C1422;
  line-height: 20px;
  overflow-wrap: break-word;
}

/* Papers List */
.papers-list {
  display: grid;
  gap: 24px;
}

.paper-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 185px;
  align-items: center;
  min-height: 232px;
  padding: 24px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E9EFF7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.paper-card:hover {
  border: 1px solid transparent; 
  background: 
    linear-gradient(#ffffff, #ffffff) padding-box, /* 内部背景 */
    linear-gradient(180deg, rgba(32, 202, 255, 1), rgba(14, 154, 255, 1)) border-box;
}

.paper-card__image {
  width: 300px;
  height: 200px;
  overflow: hidden;
  border: 1px solid #F0F0F0;
  border-radius: 10px;
  background: #FFFFFF;
}

.paper-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-card__content {
  display: flex;
  min-width: 0;
  height: 200px;
  padding: 4px 24px 0;
  flex-direction: column;
}

.paper-card__heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.paper-card__content h3 {
  overflow: hidden;
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  color: #0C1422;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-card__tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 24px;
  background: rgba(14,154,255,0.1);
  border-radius: 6px;
  padding: 0 10px;
  color: #0E9AFF;
  font-size: 12px;
  line-height: 24px;
}

.paper-card__abstract,
.paper-card__authors {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

.paper-card__abstract {
  margin-top: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.paper-card__authors {
  margin-top: 16px;
}

.paper-card__date {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 14px;
  border-left: 1px solid #E9EFF7;
}

.paper-card__day {
  font-weight: 600;
  font-size: 40px;
  color: #0C1422;
  line-height: 38px;
}

.paper-card__slash {
  font-weight: 400;
  font-size: 40px;
  color: rgba(30, 45, 85, 0.65);
  line-height: 38px;
}

.paper-card__month-year {
  font-weight: 400;
  font-size: 16px;
  color: rgba(30, 45, 85, 0.65);
  line-height: 22px;
}

.paper-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  color: #0E9AFF;
  line-height: 20px;
  text-decoration: none;
  margin-top: auto;
}

.paper-card__link img {
  width: 16px;
  height: 16px;
  display: block;
}

.paper-card__link:hover {
  text-decoration: none;
}

.paper-card__link--disabled {
  color: #77798D;
  pointer-events: none;
  cursor: default;
}


/* Papers Tabs */
.papers-tabs {
  position: sticky;
  top: 65px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px 0;
  background: #FFFFFF;
}

.papers-tabs::after {
  display: none;
  position: fixed;
  top: 140px;
  right: 0;
  left: 0;
  height: 1px;
  background: #E9EFF7;
  content: "";
}

.papers-tabs--stuck::after {
  display: block;
}

.papers-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 120px;
  width: 120px;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  border-radius: 10px;
  border: 0;
  font-weight: 500;
  font-size: 14px;
  color: #0C1422;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.papers-tabs__item:hover {
  background: rgba(3, 34, 64, 0.05);
}

.papers-tabs__item--active {
  background: #032240;
  color: #FFFFFF;
}

.papers-tabs__item--active:hover {
  background: #032240;
  color: #FFFFFF;
}


/* Reports Grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 464px);
  gap: 24px;
  justify-content: center;
}

.report-card {
  width: 464px;
  height: 430px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}

.report-card:hover {
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, rgba(32, 202, 255, 1), rgba(14, 154, 255, 1)) border-box;
}

.report-card__image {
  width: 462px;
  height: 198px;
}

.report-card__image img {
  width: 462px;
  height: 198px;
  object-fit: cover;
}

.report-card__content {
  padding: 24px 24px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.report-card__content h3 {
  font-weight: 600;
  font-size: 24px;
  color: #0C1422;
  line-height: 34px;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.report-card__content p {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 24px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.report-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: rgba(14, 154, 255, 0.1);
  border-radius: 12px;
  font-weight: 400;
  font-size: 14px;
  padding: 0 12px;
  color: #0E9AFF;
}

.report-card__date {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 22px;
}

.report-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 400;
  font-size: 14px;
  color: #0E9AFF;
  line-height: 20px;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s;
}

.report-card__download::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../images/about/arrow.svg") center / contain no-repeat;
}

.report-card__download--disabled {
  color: #77798D;
  pointer-events: none;
  cursor: default;
}

.report-card__download--disabled::after {
  background-image: url("../images/about/arrowGrey.svg");
}

/* === 留资模态框 - 符合网站设计风格 === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: url("../images/about/leadBg.png") center/cover no-repeat, rgba(255, 255, 255, 0);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__header {
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-weight: 600;
  font-size: 24px;
  color: #0C1422;
  line-height: 33px;
  margin: 0;
}

.modal__close {
  position: absolute;
  top: -32px;
  right: 8px;
  cursor: pointer;
}

.modal__close img {
  width: 20px;
  height: 20px;
}

.modal__close:hover {
  opacity: 0.7;
}

.modal__body {
  padding: 16px 32px 24px;
}

.modal__description {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 24px;
  margin-bottom: 24px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form__input {
  height: 40px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E4E7ED;
  padding: 0 12px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  box-sizing: border-box;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form__input::placeholder {
  color: var(--color-text-muted);
}

.form__select {
  height: 40px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E4E7ED;
  padding: 0 12px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  cursor: pointer;
  box-sizing: border-box;
  appearance: auto;
}

.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: rgba(0,0,0,0.88);
  line-height: 22px;
}

.form__checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.btn--modal-submit {
  height: 36px;
  background: #0E9AFF;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 4px;
}

.btn--modal-submit:hover {
  background: #0C85E6;
}

.btn--modal-submit--disabled {
  background: #C0C4CC;
  cursor: not-allowed;
}

.btn--modal-submit--disabled:hover {
  background: #C0C4CC;
}

/* === 分页组件 === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: var(--space-2);
  margin-top: 32px;
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.pagination__item:hover:not(.pagination__item--active):not(.pagination__item--disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(33, 150, 243, 0.06);
}

.pagination__item--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  cursor: default;
}

.pagination__item--disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  user-select: none;
}

/* === 产品手册卡片（manuals页面专用） === */
.manuals-page-section {
  padding: 60px 0 80px;
}

.manuals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.manual-card {
  width: 708px;
  height: 336px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E9EFF7;
  background-clip: padding-box;
  padding: 32px 24px;
  display: flex;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.manual-card:hover {
  background: linear-gradient(#ffffff, #ffffff) padding-box, /* 内部背景 */
    linear-gradient(180deg, rgba(32, 202, 255, 1), rgba(14, 154, 255, 1)) border-box;
  border: 1px solid transparent;
}

.manual-card__image {
  width: 204px;
  height: 272px;
  flex-shrink: 0;
  margin-right: 24px;
  border-radius: 6px;
  overflow: hidden;
}

.manual-card__image img {
  width: 204px;
  height: 272px;
  object-fit: cover;
  display: block;
}

.manual-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.manual-card__content h3 {
  font-weight: 600;
  font-size: 24px;
  color: #0C1422;
  line-height: 29px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.manual-card__desc {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  min-height: 120px;
  max-height: 120px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.manual-card__date {
  font-weight: 400;
  font-size: 16px;
  color: #77798D;
  line-height: 22px;
  margin-bottom: 32px;
}

.manual-card__download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 16px;
  color: #0E9AFF;
  line-height: 20px;
  text-decoration: none;
  margin-top: auto;
  cursor: pointer;
}

.manual-card__download img {
  width: 16px;
  height: 16px;
  display: block;
}

.manual-card__download--disabled {
  color: #77798D;
  pointer-events: none;
  cursor: default;
}

/* 面包屑导航 */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px 32px 0 ;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}

.breadcrumb__link {
  color: #828294;
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: #0E9AFF;
}

.breadcrumb__sep {
  color: #828294;
  margin: 0 8px;
}

.breadcrumb__current {
  color: #313233;
}
