* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #333;
  font-family:
    -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
}

.app {
  position: relative;
  width: 100%;
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f6f7f8;
}

.detail-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #fff;
}

.back-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.detail-page {
  padding-bottom: 92px;
}

.hero {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tags {
  position: absolute;
  left: 28px;
  bottom: 18px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(126, 126, 126, 0.6); /* 수정 */
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 16px 16px 0;
  padding: 8px 12px;

  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}
.source-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #777;
}

.source-info strong {
  color: #111;
  font-size: 14px;
}

.source-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111cff;
}

.subscribe-btn {
  padding: 3px 9px;
  border: 1px solid #2f6cff;
  border-radius: 999px;
  color: #2f6cff;
  font-size: 11px;
  font-weight: 500;
}

.article-content {
  padding: 28px 24px 0;
}

.article-content h1 {
  padding-left: 12px;
  border-left: 4px solid #ff4b12;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.05em;
}

.brief-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
}

.brief-row h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.action-icons {
  display: flex;
  gap: 12px;
}

.action-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 12px 0 16px;
  background: #d9d9d9;
}

.article-content p {
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: #555;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.original-btn {
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #888;
  font-size: 10px;
}

.summary-section {
  padding: 24px 30px 0;
}

.summary-section h2 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.summary-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9d9d9;
}

.summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.summary-item strong {
  flex-shrink: 0;
  color: #ff4b12;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.summary-item h3 {
  margin-bottom: 6px;
  color: #ff4b12;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.summary-item p {
  font-size: 12px;
  line-height: 1.55;
  color: #777;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.tip-box {
  margin: 26px 22px 0;
  padding: 24px 24px 28px;
  border-radius: 10px;
  background: #fffaf8;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

.tip-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #ff4b12;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.tip-box h2 img {
  width: 18px;
  height: 18px;
}

.tip-box h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.tip-box h3:not(:first-of-type) {
  margin-top: 28px;
}

.tip-box p {
  font-size: 13px;
  line-height: 1.6;
  color: #7e7e7e;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.nav-item {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 10px;
  font-weight: 500;
}

.nav-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-item.active {
  color: #111;
}

@media (min-width: 376px) and (max-width: 767px) {
  .article-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .summary-section {
    padding-left: 34px;
    padding-right: 34px;
  }

  .tip-box {
    margin-left: 28px;
    margin-right: 28px;
  }
}

@media (max-width: 374px) {
  .article-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    height: 205px;
  }
}
