/* ===== zhichenzhuanzhu_yangshi.css - 专著出版基本样式 ===== */

/* ===== 电脑端（≥1024px）===== */
.zhichenzhuanzhu-yangshi {
  padding: 48px 5%;
  background: #fdfbf7;
  border: none;
  margin: 0;
}

.ys-title {
  text-align: center;
  color: #333;
  font-size: 45px;
  margin-bottom: 10px;
  font-weight: bolder;
  font-family: Source Han Sans CN;
}

.ys-red {
  color: #b8363a;
}

.ys-desc {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 36px;
}

.ys-table {
  max-width: 1200px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ys-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px 1fr;
  border-bottom: 1px solid #e0d5c8;
}

.ys-row:last-child {
  border-bottom: none;
}

.ys-row-alt {
  background: #f9f6f1;
}

.ys-label {
  padding: 16px 20px;
  background: #b8363a;
  color: #fff;
  font-weight: bolder;
  font-size: 15px;
  display: flex;
  align-items: center;
  border-right: 1px solid #d14549;
}

.ys-value {
  padding: 16px 20px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  border-right: 1px solid #e0d5c8;
}

.ys-row-alt .ys-value {
  background: #f9f6f1;
}

.ys-row .ys-value:last-child {
  border-right: none;
}

.ys-cta {
  text-align: center;
}

.ys-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #b8363a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.ys-btn:hover {
  background: #a02d31;
}

/* ===== 折叠屏展开态（600~1023px）===== */
@media (min-width: 600px) and (max-width: 1023px) {
  .zhichenzhuanzhu-yangshi {
    padding: 36px 5%;
  }
  .ys-title {
    font-size: 38px;
  }
  .ys-desc {
    font-size: 17px;
    margin-bottom: 28px;
  }
    .ys-table {
        max-width: 1200px;
        margin: 0 auto 32px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .ys-row {
        display: grid;
        grid-template-columns: 100px 1fr 100px 1fr ;
        border-bottom: 1px solid #e0d5c8;
    }

    .ys-row:last-child {
        border-bottom: none;
    }

    .ys-row-alt {
        background: #f9f6f1;
    }

    .ys-label {
        padding: 5px 5px;
        background: #b8363a;
        color: #fff;
        font-weight: bold;
        font-size: 15px;
        display: flex;
        align-items: center;
        border-right: 1px solid #d14549;
    }

    .ys-value {
        padding: 16px 20px;
        background: #fff;
        color: #333;
        font-size: 14px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        border-right: 1px solid #e0d5c8;
    }

    .ys-row-alt .ys-value {
        background: #f9f6f1;
    }

    .ys-row .ys-value:last-child {
        border-right: none;
    }

    .ys-cta {
        text-align: center;
    }

    .ys-btn {
        display: inline-block;
        padding: 14px 36px;
        background: #b8363a;
        color: #fff;
        border-radius: 8px;
        text-decoration: none;
        font-size: 16px;
        transition: background 0.2s;
    }

    .ys-btn:hover {
        background: #a02d31;
    }

}

/* ===== 手机端（≤599px）===== */
@media (max-width: 599px) {
  .zhichenzhuanzhu-yangshi {
    padding: 32px 12px;
  }
  .ys-title {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .ys-desc {
    font-size: 16px;
    margin-bottom: 16px;
    padding: 0 8px;
  }
  .ys-table {
    max-width: 90%;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .ys-row {
    display: grid;
    grid-template-columns: 85px 1fr;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    /* 分组之间加粗分隔 */

  }
  .ys-row:last-child {
    border-bottom: none;
  }
  .ys-row-alt {
    background: transparent;
  }
  .ys-label {
    border-right: none;
    padding: 10px 10px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .ys-value {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
  }
  .ys-row-alt .ys-value {
    background: #f9f6f1;
  }
  /* 每组内第二对（最后一行）去底边框 */
  .ys-row .ys-label:nth-child(3),
  .ys-row .ys-value:nth-child(4) {
    border-bottom: none;
  }
  .ys-btn {
    font-size: 14px;
    padding: 12px 24px;
    width: 90%;
    max-width: 400px;
  }
}
