/* tem1 — Gymate-inspired sports training theme (desktop home) */
:root {
  --tem1-red: #ff033e;
  --tem1-dark: #0b0b0b;
  --tem1-dark-2: #141414;
  --tem1-gray: #f4f4f4;
  --tem1-text: #222;
  --tem1-muted: #666;
  --tem1-white: #fff;
  --tem1-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.tem1-page {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--tem1-text);
  background: var(--tem1-white);
  line-height: 1.6;
}

.tem1-container {
  width: min(var(--tem1-container), 100% - 48px);
  margin-inline: auto;
}

/* Header overrides for {{header_block}} */
.tem1-page .header {
  background: var(--tem1-dark);
  border-bottom: 3px solid var(--tem1-red);
}

.tem1-page .header .navigation {
  padding-block: 14px;
}

.tem1-page .header-logo {
  max-height: 48px;
  width: auto;
}

.tem1-page .main-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.tem1-page .main-menu__list a {
  color: var(--tem1-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.tem1-page .main-menu__list a:hover,
.tem1-page .main-menu__list a.active {
  color: var(--tem1-red);
}

.tem1-page .cus-btn {
  display: inline-flex;
  align-items: center;
  background: var(--tem1-red);
  color: var(--tem1-white);
  text-decoration: none;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tem1-page .cus-btn .text {
  color: inherit;
}

/* Top accent bar */
.tem1-topbar {
  background: var(--tem1-gray);
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  color: var(--tem1-muted);
}

.tem1-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 0;
}

.tem1-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tem1-topbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tem1-red);
  flex-shrink: 0;
}

/* Hero */
.tem1-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.82) 45%, rgba(255, 3, 62, 0.22) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(255, 3, 62, 0.35), transparent 55%);
  background-color: var(--tem1-dark);
  overflow: hidden;
}

.tem1-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 3, 62, 0.25), transparent 45%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      transparent 2px 14px
    );
  pointer-events: none;
}

.tem1-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 80px 0;
}

.tem1-badge {
  display: inline-block;
  background: var(--tem1-red);
  color: var(--tem1-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.tem1-hero h1 {
  margin: 0 0 20px;
  color: var(--tem1-white);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}

.tem1-hero-desc {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 520px;
}

.tem1-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tem1-red);
  color: var(--tem1-white);
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.tem1-hero-cta-arrow {
  font-size: 18px;
  line-height: 1;
}

/* About */
.tem1-about {
  padding: 88px 0;
  background: var(--tem1-white);
}

.tem1-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tem1-about-media {
  position: relative;
  min-height: 420px;
}

.tem1-about-media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--tem1-red);
  z-index: 0;
}

.tem1-about-media img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  display: block;
  margin-left: auto;
  object-fit: cover;
  border-radius: 4px;
}

.tem1-about-watermark {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.08em;
  z-index: 0;
  user-select: none;
}

.tem1-about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 800;
}

.tem1-about-copy p {
  margin: 0 0 28px;
  color: var(--tem1-muted);
}

.tem1-feature-list {
  display: grid;
  gap: 24px;
}

.tem1-feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.tem1-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 3, 62, 0.1);
  color: var(--tem1-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.tem1-feature-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tem1-feature-item p {
  margin: 0;
  font-size: 14px;
}

/* Section shared */
.tem1-section {
  padding: 88px 0;
}

.tem1-section-gray {
  background: var(--tem1-gray);
}

.tem1-section-dark {
  background: var(--tem1-dark-2);
  color: var(--tem1-white);
}

.tem1-section-head {
  margin-bottom: 40px;
}

.tem1-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.tem1-section-head p {
  margin: 0;
  color: var(--tem1-muted);
  max-width: 560px;
}

.tem1-section-dark .tem1-section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.tem1-section-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 40px;
  align-items: start;
}

.tem1-bg-word {
  position: relative;
}

.tem1-bg-word::after {
  content: attr(data-bg);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.tem1-section-dark .tem1-bg-word::after {
  color: rgba(255, 255, 255, 0.05);
}

.tem1-bg-word > * {
  position: relative;
  z-index: 1;
}

/* Article & case cards from runtime */
.tem1-page .article-cards,
.tem1-page .case-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tem1-page .article-card,
.tem1-page .case-card {
  border: none;
  border-radius: 0;
  padding: 0;
  background: var(--tem1-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tem1-section-dark .article-card,
.tem1-section-dark .case-card {
  background: var(--tem1-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tem1-page .article-card h3,
.tem1-page .case-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.tem1-page .article-card h3 a,
.tem1-page .case-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tem1-page .article-card h3 a:hover,
.tem1-page .case-card h3 a:hover {
  color: var(--tem1-red);
}

.tem1-page .article-card p,
.tem1-page .case-card p {
  margin: 0;
  color: var(--tem1-muted);
  font-size: 14px;
}

.tem1-section-dark .article-card p,
.tem1-section-dark .case-card p {
  color: rgba(255, 255, 255, 0.65);
}

.tem1-page .article-card > *,
.tem1-page .case-card > * {
  padding: 20px 22px 24px;
}

.tem1-cards-wrap {
  width: 100%;
}

/* Footer */
.tem1-footer {
  background: var(--tem1-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
}

.tem1-footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.tem1-footer-brand img {
  max-height: 52px;
  margin-bottom: 16px;
}

.tem1-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.tem1-footer .footer-contact,
.tem1-footer .footer-footnote,
.tem1-footer .footer-footnote.footer-contact {
  margin: 0;
  padding: 0;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.tem1-footer .footer-contact p,
.tem1-footer .footer-footnote p {
  margin: 0 0 8px;
}

.tem1-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.tem1-footer .sf-footer-contact-social {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tem1-footer .social-icon-link {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--tem1-white);
}

/* Mobile nav drawer base */
.sf-platform-desktop .mobile-nav__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.tem1-page .mobile-nav__wrapper {
  color: var(--tem1-text);
}

/* Inner / article / about page banner */
.tem1-page-banner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.88) 55%, rgba(255, 3, 62, 0.18) 100%),
    radial-gradient(ellipse at 80% 40%, rgba(255, 3, 62, 0.28), transparent 50%);
  background-color: var(--tem1-dark);
  overflow: hidden;
}

.tem1-page-banner-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}

.tem1-page-banner .breadcrumb {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.65);
}

.tem1-page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.tem1-page-banner .breadcrumb a:hover {
  color: var(--tem1-red);
}

.tem1-page-banner h1 {
  margin: 0;
  color: var(--tem1-white);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Inner list */
.tem1-inner-content {
  padding: 64px 0 88px;
  background: var(--tem1-white);
}

.tem1-inner-content.tem1-inner-gray {
  background: var(--tem1-gray);
}

.tem1-inner-block {
  margin-bottom: 48px;
}

.tem1-inner-block:last-child {
  margin-bottom: 0;
}

.tem1-inner-block-head {
  margin-bottom: 28px;
}

.tem1-inner-block-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
}

.tem1-page .sf-page-body {
  margin-bottom: 32px;
  color: var(--tem1-muted);
}

.tem1-page .sf-page-body h1,
.tem1-page .sf-page-body h2 {
  color: var(--tem1-text);
}

.tem1-page .sf-news-list,
.tem1-page .sf-cases-list {
  width: 100%;
}

.tem1-page .news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tem1-page .sf-pagination {
  margin-top: 32px;
}

.tem1-page .pagination a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--tem1-dark);
  color: var(--tem1-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.tem1-page .pagination a:hover,
.tem1-page .pagination .current {
  background: var(--tem1-red);
}

/* Article detail */
.tem1-article-section {
  padding: 64px 0 88px;
  background: var(--tem1-white);
}

.tem1-article {
  max-width: 860px;
  margin: 0 auto;
}

.tem1-article-content {
  color: var(--tem1-text);
  font-size: 16px;
  line-height: 1.85;
}

.tem1-article-content p {
  margin: 0 0 1em;
}

.tem1-article-content h2,
.tem1-article-content h3 {
  margin: 1.5em 0 0.75em;
  font-weight: 800;
}

.tem1-article-content img {
  max-width: 100%;
  height: auto;
}

.tem1-page .article-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.tem1-page .article-tags a {
  display: inline-block;
  background: rgba(255, 3, 62, 0.08);
  color: var(--tem1-red);
  padding: 6px 14px;
  margin: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tem1-page .article-prev-next {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.tem1-page .article-prev-next a {
  color: var(--tem1-text);
  text-decoration: none;
  font-weight: 600;
}

.tem1-page .article-prev-next a:hover {
  color: var(--tem1-red);
}

/* About page */
.tem1-about-page {
  padding: 88px 0;
  background: var(--tem1-white);
}

.tem1-card-grid,
.tem1-page .article-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tem1-card,
.tem1-page .article-card {
  background: var(--tem1-white);
  border: 1px solid #eee;
  overflow: hidden;
}

.tem1-card-media,
.tem1-page .article-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tem1-gray);
}

.tem1-card-media img,
.tem1-page .article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tem1-card-body {
  padding: 18px 20px 22px;
}

.tem1-card-date {
  display: block;
  font-size: 12px;
  color: var(--tem1-muted);
  margin-bottom: 8px;
}

.tem1-card-title,
.tem1-page .article-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.tem1-card-title a,
.tem1-page .article-card h3 a {
  color: var(--tem1-text);
  text-decoration: none;
}

.tem1-card-summary,
.tem1-page .article-card p {
  margin: 0;
  color: var(--tem1-muted);
  font-size: 14px;
}

.tem1-page .sf-footer-contact-social {
  margin-bottom: 24px;
}

.tem1-page .sf-footer-contact-social .social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tem1-page .sf-footer-contact-social .social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--tem1-white);
  text-decoration: none;
}

@media (max-width: 960px) {
  .tem1-card-grid,
  .tem1-page .article-cards {
    grid-template-columns: 1fr;
  }
}

.tem1-about-page .tem1-about-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  font-weight: 800;
}

.tem1-about-extra {
  margin-top: 32px;
  color: var(--tem1-muted);
}
