/* 頁面樣式：首頁輪播、內容區塊、卡片、聯絡區塊與互動細節 */

.hero-section {
  position: relative;
  z-index: 2;
}

.hero-slide {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(255,248,238,0.1) 0%, rgba(255,236,214,0.42) 42%, rgba(243,181,125,0.3) 100%),
    linear-gradient(90deg, rgba(255,250,245,0.78) 0%, rgba(255,241,226,0.38) 45%, rgba(255,219,219,0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 11vh;
  max-width: 900px;
}

.editorial-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(213,141,63,0.22);
  background: rgba(255,255,255,0.58);
  color: #7f4c1d;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 1.2rem;
  color: #1e2430;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  font-weight: 900;
  line-height: 1.03;
  text-shadow: 0 10px 28px rgba(255,255,255,0.28);
}

.hero-content p {
  max-width: 640px;
  margin: 0;
  color: rgba(30,36,48,0.82);
  font-size: 1.06rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-editorial-primary,
.btn-editorial-outline {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-editorial-primary {
  background: linear-gradient(135deg, #f3a64d, #ffd48a);
  color: #1e2430;
}

.btn-editorial-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(243, 166, 77, 0.28);
}

.btn-editorial-outline {
  border: 1px solid rgba(30,36,48,0.16);
  color: #1e2430;
  background: rgba(255,255,255,0.45);
}

.btn-editorial-outline:hover {
  background: rgba(255,255,255,0.72);
}

.quote-panel {
  height: 100%;
  padding: 2rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,246,235,0.72));
  box-shadow: 0 18px 45px rgba(130, 96, 53, 0.08);
}

.quote-panel p {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 1.45rem;
  line-height: 1.8;
}

.feature-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,244,229,0.82));
  box-shadow: var(--shadow);
}

.feature-index {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 0.85rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.5rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.9;
  color: rgba(30,36,48,0.72);
}

.feature-card-news {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.news-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243,166,77,0.22), rgba(255,139,139,0.22));
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-card-news:hover .news-cover img {
  transform: scale(1.06);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.8rem;
}

.news-card-body h3 {
  margin-bottom: 0.8rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.45rem;
}

.news-card-body h3 a {
  color: #1e2430;
  text-decoration: none;
}

.news-card-body p {
  margin-bottom: 1.2rem;
}

.news-readmore {
  margin-top: auto;
  color: #d45757;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.news-readmore::after {
  content: " →";
}

.news-section-action {
  margin-top: 2.4rem;
  text-align: center;
}

.news-page-hero {
  position: relative;
  padding: 10rem 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 151, 0.45), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 144, 144, 0.28), transparent 30%),
    linear-gradient(135deg, #fff8f0 0%, #fff1e2 45%, #ffe6d4 100%);
}

.news-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(203, 144, 76, 0.07) 0,
      rgba(203, 144, 76, 0.07) 1px,
      transparent 1px,
      transparent 110px
    );
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
}

.news-breadcrumb {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  color: rgba(30,36,48,0.58);
  font-size: 0.92rem;
}

.news-breadcrumb a {
  color: #8b6b39;
  text-decoration: none;
}

.news-page-hero h1 {
  margin-bottom: 1rem;
  color: #1e2430;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
}

.news-page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(30,36,48,0.8);
  font-size: 1.04rem;
  line-height: 1.95;
}

.news-list-section {
  position: relative;
  z-index: 1;
}

.news-list-layout {
  display: grid;
  gap: 1.5rem;
}

.news-list-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  overflow: hidden;
  border: 1px solid rgba(213,141,63,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,245,233,0.86));
  box-shadow: 0 20px 54px rgba(39, 27, 12, 0.08);
}

.news-list-thumb {
  position: relative;
  min-height: 100%;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-content {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.news-list-meta {
  margin-bottom: 0.8rem;
  color: #9a6f3d;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.news-list-content h2 {
  margin-bottom: 0.9rem;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.news-list-content h2 a {
  color: #1e2430;
  text-decoration: none;
}

.news-list-content p {
  margin-bottom: 1.15rem;
  color: rgba(30,36,48,0.78);
  line-height: 1.9;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.news-tags span {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(213,141,63,0.2);
  background: rgba(255,255,255,0.7);
  color: #7f4c1d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.news-detail-main {
  padding-top: 3rem;
}

.news-detail-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(213,141,63,0.12);
  background: #fff;
  box-shadow: 0 22px 60px rgba(39, 27, 12, 0.1);
}

.news-detail-cover img {
  width: 100%;
  height: min(58vh, 620px);
  object-fit: cover;
}

.news-article {
  padding: 2.25rem 0 0;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  color: #9a6f3d;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.news-article-title {
  margin-bottom: 1.2rem;
  color: #1e2430;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.16;
}

.news-article-intro {
  margin-bottom: 1.6rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  color: rgba(30,36,48,0.84);
  font-size: 1.08rem;
  line-height: 1.95;
}

.news-article-content {
  display: grid;
  gap: 1.15rem;
}

.news-article-content h2,
.news-article-content h3 {
  margin: 0.6rem 0 0;
  font-family: "Noto Serif TC", serif;
  color: #1e2430;
}

.news-article-content p,
.news-article-content li {
  color: rgba(30,36,48,0.82);
  line-height: 2;
}

.news-article-content ul {
  margin: 0;
  padding-left: 1.3rem;
}

.news-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(30,36,48,0.08);
}

.news-detail-nav a {
  color: #d45757;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .news-list-card {
    grid-template-columns: 1fr;
  }

  .news-list-thumb {
    min-height: 280px;
  }
}

@media (max-width: 767.98px) {
  .news-page-hero {
    padding: 8.6rem 0 3.8rem;
  }

  .news-card-body,
  .news-list-content {
    padding: 1.35rem;
  }

  .news-article {
    padding-top: 1.6rem;
  }

  .news-detail-cover img {
    height: 260px;
  }

  .news-detail-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

.service-card {
  height: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(213,141,63,0.1);
  box-shadow: 0 22px 60px rgba(39, 27, 12, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(39, 27, 12, 0.18);
}

.service-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.service-image img {
  height: 100%;
  transition: transform 0.7s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-body {
  padding: 1.5rem 1.4rem 1.8rem;
}

.service-no {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: #8b6b39;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.service-body h3 {
  margin-bottom: 0.85rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.65rem;
}

.service-body p {
  margin: 0;
  color: rgba(23,23,23,0.78);
  line-height: 1.9;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 1.8rem;
  border-left: 3px solid rgba(213,141,63,0.42);
  background: rgba(255,255,255,0.56);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(170, 124, 58, 0.08);
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.4rem;
}

.timeline-item p {
  margin: 0;
  line-height: 1.9;
  color: rgba(30,36,48,0.82);
}

.experience-board {
  padding: 2rem;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,244,229,0.7));
  box-shadow: 0 25px 60px rgba(130,96,53,0.08);
}

.experience-category {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(135deg, #ffb260, #ff8b8b);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.experience-list {
  margin: 0;
  padding-left: 1.2rem;
}

.experience-list li {
  margin-bottom: 0.8rem;
  line-height: 1.9;
  color: rgba(23,23,23,0.86);
}

.experience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 1.4rem;
}

.text-link {
  position: relative;
  color: #d45757;
  font-weight: 700;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.contact-section {
  overflow: hidden;
}

.contact-panel,
.map-panel {
  height: 100%;
  padding: 2rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(213,141,63,0.14);
  box-shadow: 0 20px 50px rgba(130,96,53,0.08);
}

.contact-panel h2 {
  margin-bottom: 1rem;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-panel p {
  line-height: 1.95;
  color: rgba(30,36,48,0.78);
}

.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(30,36,48,0.08);
}

.contact-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.contact-item strong a {
  color: #1e2430;
}

.contact-note {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 214, 153, 0.24);
  border-left: 3px solid var(--accent);
}

#news .feature-card,
#entry-form .experience-board,
#qsprint .timeline-item,
#portfolio .service-card {
  border-radius: var(--radius);
}

#qsprint .text-link,
#entry-form .text-link {
  font-size: 1.02rem;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.2) contrast(1.02) saturate(1.02);
}

@media (max-width: 991.98px) {
  .hero-slide {
    min-height: 88vh;
  }

  .hero-content {
    padding-bottom: 13vh;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .hero-content p,
  .editorial-copy p,
  .feature-card p,
  .service-body p,
  .timeline-item p,
  .contact-panel p {
    line-height: 1.8;
  }

  .quote-panel p {
    font-size: 1.2rem;
  }

  .service-body h3 {
    font-size: 1.4rem;
  }

  .contact-panel,
  .map-panel,
  .experience-board,
  .feature-card,
  .timeline-item {
    padding: 1.4rem;
  }

  .map-panel iframe {
    min-height: 320px;
  }
}

/* 聯絡區塊社群按鈕樣式 */
.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

.social-fb {
  background: #1877f2;
}

.social-ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.social-line {
  background: #06c755;
}

.social-btn svg {
  width: 22px;
  height: 22px;
}
