/* =====================================================================
   NoteBurner — Resources 2 page 状态二 (Mobile-First)
   Breakpoints: 576 / 768 / 992 / 1200 / 1400 / 1920
   Figma: 1210_69537(xs) / 67059(sm) / 65403(md) / 63666(lg) / 61960(xl) / 60285(xxl) / 1209_59333(xxxl)
===================================================================== */

:root {
  --r2-t-1: #000000e5;
  --r2-t-2: #000000b2;
  --r2-t-3: #00000066;
  --r2-t-4: #00000080;
  --r2-blue: #26a7fe;
  --r2-green: #02cb64;
  --r2-gradient: linear-gradient(180deg, #26a7fe 0%, #02cb64 100%);
  --r2-card-border: #26a7fe29;
  --r2-card-bg: #26a7fe14;
  --r2-hero-title-color: #132a3f;
}

/* =====================================================================
   MOBILE BASE ( < 576px )
===================================================================== */

.r2-page {
  overflow: hidden;
  background: #fff;
  font-family: Figtree, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

/* ---------- Hero Wrapper ---------- */
.r2-hero-wrap {
  padding: 0 20px;
}

/* ---------- Hero ---------- */
.r2-hero {
  position: relative;
  border-radius: 20px;
  background-color: #ffffff;
  padding: 80px 0;
  overflow: hidden;
   background-image: url(../images/common/review-bg.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Hero glow effects */
.r2-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.r2-hero-glow-blue {
  bottom: -709px;
  left: -407px;
  opacity: 0.2;
  background: #26a7fe;
  width: 998px;
  height: 998px;
  filter: blur(150px);
}

.r2-hero-glow-white {
  bottom: -246px;
  left: 30px;
  opacity: 0.3;
  background: #ffffff;
  width: 748px;
  height: 748px;
  filter: blur(250px);
}

.r2-hero-glow-green {
  top: -652px;
  right: -243px;
  opacity: 0.3;
  background: #02cb64;
  width: 910px;
  height: 910px;
  filter: blur(250px);
}

/* Hero Content */
.r2-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 40px);
  margin: 0 auto;
  row-gap: 40px;
}

/* Breadcrumb */
.r2-breadcrumb {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  align-self: stretch;
  justify-content: center;
}

.r2-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  border-radius: 4px;
  padding: 4px;
  height: 32px;
  font-size: 18px;
  line-height: 29px;
  color: var(--r2-t-4);
  text-decoration: none;
}

.r2-breadcrumb-link:hover {
  color: var(--r2-blue);
}

.r2-breadcrumb-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.r2-breadcrumb-current {
  background: var(--r2-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  padding: 2px 4px;
  font-size: 18px;
  line-height: 29px;
  color: transparent;
}

.r2-breadcrumb-topic {
  padding: 2px 4px;
  font-size: 18px;
  line-height: 29px;
  color: var(--r2-t-4);
}

/* Hero Title */
.r2-hero-title {
  margin: 0;
  flex-shrink: 0;
  align-self: stretch;
  text-align: center;
  font-size: 60px;
  font-weight: 800;
  line-height: 78px;
  letter-spacing: 0;
  color: var(--r2-hero-title-color);
}

/* Category Tags */
.r2-categories {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  column-gap: 20px;
  row-gap: 20px;
}

.r2-cat-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 24px;
  border-radius: 20px;
  background: #ffffffb2;
  border: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--r2-t-4);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.r2-cat-tag:hover {
  background: #ffffff;
  color: var(--r2-t-1);
}

/* ---------- Main Content Wrapper ---------- */
.r2-content {
  display: block;
}

/* ---------- Sidebar (hidden below xl) ---------- */
.r2-aside {
  display: none;
}

.r2-aside-cats {
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  overflow: hidden;
  align-self: stretch;
}

.r2-aside-cats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: linear-gradient(100deg, #26a7fe 0%, #02cb64 100%);
}

.r2-aside-cats-head-title {
  display: inline-flex;
  align-items: center;
  column-gap: 4px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  margin: 0;
}

.r2-aside-cats-head-title img,
.r2-aside-cats-head > img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.r2-aside-cats-list {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.r2-aside-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: var(--r2-t-2);
  text-decoration: none;
}

.r2-aside-cat:hover {
  background: #f5f5f5;
  color: var(--r2-blue);
}

.r2-aside-cat--active {
  background: #f5f5f5;
  color: var(--r2-blue);
}

.r2-aside-cat span:last-child {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  color: var(--r2-t-4);
}

.r2-aside-box {
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  padding: 31px 23px;
  align-self: stretch;
  row-gap: 20px;
}

.r2-aside-box-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 48px;
  color: var(--r2-t-1);
}

.r2-aside-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.r2-aside-list li {
  line-height: 29px;
  color: #00000099;
  transition: color 0.2s;
}

.r2-aside-list li:hover {
  color: var(--r2-blue);
}

.r2-aside-list a {
  font-size: 16px;
  line-height: 29px;
  color: inherit;
  text-decoration: none;
}

.r2-aside-list a:hover {
  color: inherit;
}

/* ---------- Main Column ---------- */
.r2-main {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 40px;
}

/* Featured Card */
.r2-featured {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid var(--r2-card-border);
  border-radius: 20px;
  background-color: var(--r2-card-bg);
  padding: 39px;
  gap: 40px;
  background-image: url(../images/resources-2/resources2-featured-bg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.r2-featured-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  row-gap: 40px;
}

.r2-featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 12px;
}

.r2-featured-title {
  margin: 0;
  flex-shrink: 0;
  align-self: stretch;
  font-size: 36px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  color: var(--r2-t-1);
}

.r2-featured-desc {
  margin: 0;
  display: -webkit-box;
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--r2-t-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.r2-featured-desc-full {
  margin: 0;
  flex-shrink: 0;
  align-self: stretch;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--r2-t-2);
}

/* Featured CTA Buttons */
.r2-featured-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
 gap: 20px;
}

.r2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  min-width: max-content;
  column-gap: 8px;
  border-radius: 999px;
  padding: 10px 36px;
  height: 58px;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.r2-btn-blue {
  background: #26a7fe;
}

.r2-btn-green {
  background: #02cb64;
}

.r2-btn img {
  width: 18px;
  height: 18px;
}

/* Featured Image */
.r2-featured-img {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  width: 100%;
}

.r2-featured-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Articles Section ---------- */
.r2-articles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 20px;
}

/* Articles Header */
.r2-articles-head {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
}

.r2-articles-head-title {
  margin: 0;
  flex-grow: 1;
  font-size: 36px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  color: var(--r2-t-1);
}

.r2-articles-head-count {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  color: var(--r2-t-4);
}
.r2-articles-card{
    display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 20px;
}
/* Article Card */
.r2-card {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  column-gap: 24px;
  border-radius: 20px;
  background: #f5f5f5;
  padding: 24px;
  text-decoration: none;
  transition: background 0.2s;
}

.r2-card:hover {
  background: #e8e8e8;
}

.r2-card-img {
  flex-shrink: 0;
  border-radius: 4px;
  width: 160px;
  height: 98px;
  object-fit: cover;
}

.r2-card-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: flex-start;
  row-gap: 4px;
}

.r2-card-title {
  margin: 0;
  display: -webkit-box;
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
  font-size: 20px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0;
  color: var(--r2-blue);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.r2-card-desc {
  margin: 0;
  display: -webkit-box;
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0;
  color: var(--r2-t-2);
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Pagination */
.r2-pagination {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  width: 100%;
}

.r2-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 3px 7px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-family: "Nunito Sans", Figtree, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--r2-t-2);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.r2-page-btn img {
  width: 24px;
  height: 24px;
}

.r2-page-btn--arrow {
  width: 40px;
  height: 40px;
  padding: 7px;
}

.r2-page-btn--active {
  background: #26a7fe;
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  padding: 4px 8px;
}

.r2-page-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.r2-page-btn--dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 9px 0;
  border: none;
  background: transparent;
  font-family: "Nunito Sans", Figtree, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--r2-t-2);
  cursor: default;
}


/* =====================================================================
   ≥ 576px — SM
===================================================================== */
@media (min-width: 576px) {
  .r2-featured-img {
    height: 456px;
  }

  .r2-hero-content {
    width: calc(100% - 40px);
  }

  .r2-featured-desc {
    width: auto;
  }

  .r2-featured-desc-full {
    width: auto;
  }

}


/* =====================================================================
   ≥ 768px — MD
===================================================================== */
@media (min-width: 768px) {
  .r2-featured-text{
    flex: 1;
  }
  .r2-featured-img {
    height: inherit;
    flex: 1;
  }
  .r2-hero-content {
    width: calc(100% - 40px);
  }

  .r2-main {
    padding: 100px 20px;
  }

  .r2-featured {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

}
@media (max-width: 992px) {
  .r2-featured-actions{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =====================================================================
   ≥ 992px — LG
===================================================================== */
@media (min-width: 992px) {
  .r2-categories {
    max-width: 992px;
    margin: auto;
  }

  .r2-hero-content {
    width: calc(100% - 40px);
  }

  .r2-main {
    padding: 100px 40px;
  }

  .r2-card-desc {
    -webkit-line-clamp: 2;
  }
}


/* =====================================================================
   ≥ 1200px — XL  (sidebar layout)
===================================================================== */
@media (min-width: 1200px) {

  .r2-hero-content {
    width: calc(100% - 40px);
  }

  .r2-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 40px;
    padding: 100px 40px;
  }

  .r2-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 335px;
    row-gap: 40px;
  }

  .r2-main {
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .r2-featured-desc-full {
    display: none;
  }
}


/* =====================================================================
   ≥ 1400px — XXL
===================================================================== */
@media (min-width: 1400px) {
  .r2-featured-desc-full {
    display: block;
  }

  .r2-hero-content {
    width: calc(100% - 40px);
  }

  .r2-content {
    padding: 100px 40px;
  }

  .r2-aside {
    width: 350px;
  }

  .r2-featured {
    align-items: flex-start;
    height: auto;
  }

  .r2-featured-desc {
    -webkit-line-clamp: unset;
  }

}


/* =====================================================================
   ≥ 1920px — XXXL
===================================================================== */
@media (min-width: 1600px) {
  .r2-content {
    padding: 100px 240px;
  }
}

@media (min-width: 1920px) {
  .r2-featured-actions{
    flex-direction: row;
  }
  .r2-featured-img{
    flex: none;
    width:262px;
  }

  .r2-hero-content {
    width: 1440px;
  }

  .r2-content {
    padding: 100px 320px;
  }

  .r2-featured {
    align-items: center;
  }
}

/* Mobile (<420px): hero title font-size 48px */
@media (max-width: 420px) {
  .r2-hero-title {
    font-size: 48px;
  }
}
