/* ========================================
   Orange Bay Sports - Theme CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #EE5835;
  --color-primary-hover: #d94e2e;
  --color-text: #111111;
  --color-text-secondary: #333333;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-gray: #F2F2F2;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-wechat: #07C160;
  --max-width: 1400px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Container --- */
.obs-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

@media (max-width: 767px) {
  .obs-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* --- Navbar --- */
.obs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  transition: all 0.3s;
}

.obs-nav.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.obs-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 768px) {
  .obs-nav-inner {
    padding: 0 64px;
  }
}

/* Logo row */
.obs-logo-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: all 0.3s;
  overflow: hidden;
}

@media (min-width: 768px) {
  .obs-logo-row {
    display: flex;
  }
}

.obs-nav.scrolled .obs-logo-row {
  height: 0;
  opacity: 0;
  padding: 0;
}

.obs-logo-row img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Language switcher */
.obs-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.obs-lang-switcher .label {
  font-weight: 400;
  color: #000;
  margin-right: 4px;
}

.obs-lang-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  color: #6b7280;
  font-size: inherit;
  font-weight: inherit;
}

.obs-lang-btn:hover {
  color: #1f2937;
}

.obs-lang-btn.active {
  background-color: var(--color-primary);
  color: #fff;
}

/* Nav row */
.obs-nav-row {
  display: flex;
  align-items: center;
  height: 36px;
  transition: all 0.3s;
}

.obs-nav.scrolled .obs-nav-row {
  height: 56px;
}

/* Mobile nav row */
.obs-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 768px) {
  .obs-mobile-nav {
    display: none;
  }
}

.obs-mobile-nav img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.obs-mobile-lang {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
}

.obs-mobile-lang .obs-lang-btn {
  padding: 4px 10px;
  border-radius: 0;
}

/* Hamburger */
.obs-hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.obs-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #374151;
  transition: all 0.3s;
}

.obs-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.obs-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.obs-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop nav */
.obs-desktop-nav {
  display: none;
  align-items: center;
  width: 100%;
  transition: all 0.3s;
  justify-content: center;
}

@media (min-width: 768px) {
  .obs-desktop-nav {
    display: flex;
  }
}

.obs-nav.scrolled .obs-desktop-nav {
  justify-content: flex-start;
}

/* Scrolled logo in nav */
.obs-scrolled-logo {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-right: 0;
}

.obs-nav.scrolled .obs-scrolled-logo {
  max-width: 200px;
  opacity: 1;
  margin-right: 24px;
}

.obs-scrolled-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.obs-scrolled-logo .divider {
  margin-left: 24px;
  width: 1px;
  height: 16px;
  background: #d1d5db;
  flex-shrink: 0;
}

/* Primary menu items */
.obs-primary-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.obs-primary-menu li a,
.obs-primary-menu li span {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.obs-nav.scrolled .obs-primary-menu li a,
.obs-nav.scrolled .obs-primary-menu li span {
  font-size: 17px;
}

.obs-primary-menu li a:hover,
.obs-primary-menu li span:hover {
  color: var(--color-primary);
}

/* Nav divider */
.obs-nav-divider {
  margin: 0 24px;
  width: 1px;
  height: 16px;
  background: #d1d5db;
  flex-shrink: 0;
}

/* Sports menu */
.obs-sports-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.obs-sports-menu li a,
.obs-sports-menu li span {
  font-size: 15px;
  font-weight: 400;
  color: #1f2937;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.obs-nav.scrolled .obs-sports-menu li a,
.obs-nav.scrolled .obs-sports-menu li span {
  font-size: 16px;
}

.obs-sports-menu li a:hover {
  color: #000;
}

/* Search icon */
.obs-search-btn {
  margin-left: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.obs-search-btn:hover {
  background: #f3f4f6;
}

.obs-search-btn i {
  font-size: 18px;
  color: #4b5563;
}

/* ============ Search Modal ============ */
.obs-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.obs-search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.obs-search-modal {
  width: 100%;
  max-width: 680px;
  margin: 0 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s;
}
.obs-search-overlay.active .obs-search-modal {
  transform: translateY(0) scale(1);
}
.obs-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.obs-search-input-icon {
  font-size: 20px;
  color: #f97316;
  flex-shrink: 0;
}
.obs-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #111;
  background: transparent;
}
.obs-search-input::placeholder { color: #9ca3af; }
.obs-search-clear {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #e5e7eb;
  border-radius: 50%;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.obs-search-clear:hover { background: #d1d5db; }
.obs-search-cancel {
  border: none;
  background: none;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
}
.obs-search-cancel:hover { color: #111; }

.obs-search-results { max-height: 400px; overflow-y: auto; }

.obs-search-loading,
.obs-search-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}
.obs-search-empty strong { color: #111; }

.obs-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.obs-search-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.obs-search-item a:hover { background: #f9fafb; }
.obs-search-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}
.obs-search-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 22px;
}
.obs-search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.obs-search-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obs-search-item-cat {
  font-size: 12px;
  color: #f97316;
}
.obs-search-item-arrow {
  font-size: 18px;
  color: #d1d5db;
  flex-shrink: 0;
}

.obs-search-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #f97316;
  text-decoration: none;
  transition: background 0.15s;
}
.obs-search-viewall:hover { background: #fff7ed; }

@media (max-width: 767px) {
  .obs-search-overlay { padding-top: 5vh; }
  .obs-search-modal { border-radius: 12px; }
  .obs-search-results { max-height: 50vh; }
}

/* Mobile expanded menu */
.obs-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s;
}

@media (max-width: 767px) {
  .obs-mobile-menu {
    display: block;
  }
}

.obs-mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

.obs-mobile-menu-inner {
  padding: 12px 16px;
}

.obs-mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.obs-mobile-categories a.primary {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.obs-mobile-categories a.sports {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  white-space: nowrap;
}

.obs-mobile-categories a:hover {
  color: var(--color-primary);
}

.obs-mobile-divider {
  height: 1px;
  background: #f3f4f6;
  margin-bottom: 12px;
}

.obs-mobile-brands-title {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.obs-mobile-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.obs-mobile-brands a {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
  transition: color 0.2s;
}

.obs-mobile-brands a:hover {
  color: var(--color-primary);
}

.obs-mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  transition: color 0.2s;
}

.obs-mobile-search:hover {
  color: var(--color-primary);
}

/* ========================================
   Hero Grid
   ======================================== */
.obs-hero-grid {
  margin-top: 112px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 16px 64px;
}

@media (max-width: 767px) {
  .obs-hero-grid {
    display: none;
  }
}

.obs-hero-flex {
  display: flex;
  gap: 12px;
  height: 440px;
  align-items: flex-start;
}

/* Left grid */
.obs-hero-left {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}

.obs-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.obs-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.obs-hero-card:hover img {
  transform: scale(1.05);
}

.obs-hero-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2) 50%, transparent);
}

.obs-hero-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
}

.obs-hero-main {
  grid-column: span 2;
  grid-row: span 2;
}

.obs-hero-main .content {
  padding: 20px;
}

.obs-hero-badge {
  display: inline-block;
  padding: 2px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--color-primary);
  margin-bottom: 8px;
}

.obs-hero-main .obs-hero-badge {
  padding: 4px 12px;
}

.obs-hero-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  transition: color 0.2s;
}

.obs-hero-card:hover h2 {
  color: var(--color-primary);
}

.obs-hero-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-hero-card:hover h3 {
  color: var(--color-primary);
}

.obs-hero-small .obs-hero-badge {
  padding: 1px 8px;
  font-size: 10px;
  margin-bottom: 4px;
}

/* Right sidebar */
.obs-hero-right {
  flex-shrink: 0;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.obs-brands-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.obs-brands-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.obs-brands-title .bar {
  width: 4px;
  height: 14px;
  border-radius: 9999px;
  background: var(--color-primary);
}

.obs-brands-title span {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.obs-brands-list {
  line-height: 2.2;
  overflow: hidden;
  list-style: none;
}

.obs-brands-list a {
  font-size: 14px;
  color: #374151;
  transition: color 0.2s;
}

.obs-brands-list a:hover {
  color: var(--color-primary);
}

.obs-brands-list .sep {
  color: #d1d5db;
  margin: 0 6px;
  font-size: 12px;
}

.obs-hero-sidebar-card {
  flex: none;
  height: 214px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.obs-hero-sidebar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.obs-hero-sidebar-card:hover img {
  transform: scale(1.05);
}

.obs-hero-sidebar-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2) 50%, transparent);
}

.obs-hero-sidebar-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
}

.obs-hero-sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-hero-sidebar-card:hover h3 {
  color: var(--color-primary);
}

/* ========================================
   Mobile Banner
   ======================================== */
.obs-mobile-banner {
  display: none;
}

@media (max-width: 767px) {
  .obs-mobile-banner {
    display: block;
    margin-top: 44px;
  }
}

.obs-mobile-banner-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.obs-mobile-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.5s;
  opacity: 0;
  z-index: 0;
}

.obs-mobile-banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.obs-mobile-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.obs-mobile-banner-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 50%, transparent);
}

.obs-mobile-banner-slide .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.obs-mobile-banner-slide .obs-hero-badge {
  margin-bottom: 8px;
  font-size: 12px;
  padding: 2px 10px;
}

.obs-mobile-banner-slide h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-mobile-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.obs-mobile-dot {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.6);
  width: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.obs-mobile-dot.active {
  width: 20px;
  background: var(--color-primary);
}

/* ========================================
   Article Feed
   ======================================== */
.obs-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 16px;
}

@media (min-width: 768px) {
  .obs-feed {
    padding: 16px 64px;
  }
}

.obs-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.obs-feed-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.obs-feed-title .bar {
  width: 4px;
  height: 24px;
  border-radius: 9999px;
  background: var(--color-primary);
}

.obs-feed-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Article item */
.obs-article-item {
  display: block;
  padding: 20px 16px;
  margin: 0 -16px;
  border-radius: 8px;
  transition: background 0.2s;
  color: inherit;
}

.obs-article-item:hover {
  background: rgba(249,250,251,0.6);
}

/* Desktop layout */
.obs-article-desktop {
  display: none;
  gap: 24px;
}

@media (min-width: 768px) {
  .obs-article-desktop {
    display: flex;
  }
}

.obs-article-thumb {
  flex-shrink: 0;
  width: 340px;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
}

.obs-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.obs-article-item:hover .obs-article-thumb img {
  transform: scale(1.05);
}

.obs-article-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.obs-article-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-article-item:hover .obs-article-info h3 {
  color: var(--color-primary);
}

.obs-article-excerpt {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.obs-article-meta {
  display: flex;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  color: #111;
}

.obs-article-meta .section {
  font-weight: 600;
  color: #111;
}

.obs-article-meta .sep {
  color: #999;
  margin: 0 8px;
}

.obs-article-meta .category {
  color: #222;
}

.obs-article-meta .date {
  color: #333;
  margin-left: 16px;
}

/* Mobile layout */
.obs-article-mobile {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (min-width: 768px) {
  .obs-article-mobile {
    display: none;
  }
}

.obs-article-mobile .thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
}

.obs-article-mobile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.obs-article-item:hover .obs-article-mobile .thumb img {
  transform: scale(1.05);
}

.obs-article-mobile .info {
  flex: 1;
  min-width: 0;
}

.obs-article-mobile h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.obs-article-item:hover .obs-article-mobile h3 {
  color: var(--color-primary);
}

.obs-article-mobile .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.obs-article-mobile .meta .section {
  color: #4b5563;
  font-weight: 500;
}

.obs-article-mobile .meta .sep {
  color: #d1d5db;
}

/* Load more button */
.obs-load-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.obs-load-more a,
.obs-load-more button {
  padding: 10px 40px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 14px;
  color: #4b5563;
  transition: all 0.2s;
  white-space: nowrap;
  background: transparent;
}

.obs-load-more a:hover,
.obs-load-more button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   Footer
   ======================================== */
.obs-footer {
  background: var(--color-bg-gray);
  color: #374151;
}

.obs-footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 16px;
}

@media (min-width: 768px) {
  .obs-footer-main {
    padding: 56px 64px;
  }
}

.obs-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .obs-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.obs-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.obs-footer-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.obs-footer-brand p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.obs-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.obs-footer-social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
  cursor: pointer;
}

.obs-footer-social-icon:hover {
  border-color: var(--color-primary);
  background: rgba(238,88,53,0.1);
}

.obs-footer-social-icon i {
  font-size: 16px;
  color: #6b7280;
  transition: color 0.2s;
}

.obs-footer-social-icon:hover i {
  color: var(--color-primary);
}

.obs-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs-footer-col h4 .bar {
  width: 4px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 9999px;
  display: inline-block;
}

.obs-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.obs-footer-col ul li a {
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s;
}

.obs-footer-col ul li a:hover {
  color: var(--color-primary);
}

.obs-footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.obs-footer-contact i {
  font-size: 15px;
  color: var(--color-primary);
  margin-top: 2px;
}

.obs-footer-contact a {
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s;
  word-break: break-all;
}

.obs-footer-contact a:hover {
  color: var(--color-primary);
}

/* Footer bottom */
.obs-footer-bottom {
  border-top: 1px solid #d1d5db;
}

.obs-footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .obs-footer-bottom-inner {
    padding: 20px 64px;
  }
}

.obs-footer-bottom p {
  font-size: 12px;
  color: #6b7280;
}

.obs-footer-bottom p.icp {
  color: #9ca3af;
}

/* ========================================
   Single Article
   ======================================== */
.obs-single-breadcrumb {
  padding-top: 73px;
}

.obs-single-breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 1024px) {
  .obs-single-breadcrumb-inner {
    padding: 12px 112px;
  }
}

.obs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.obs-breadcrumb a {
  color: #9ca3af;
  transition: color 0.2s;
  white-space: nowrap;
}

.obs-breadcrumb a:hover {
  color: var(--color-primary);
}

.obs-breadcrumb .current {
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obs-breadcrumb i {
  color: #d1d5db;
}

/* Article main layout */
.obs-single-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 16px;
  padding-top: 113px;
}

@media (min-width: 1024px) {
  .obs-single-main {
    padding: 113px 112px 40px;
  }
}

.obs-single-flex {
  display: flex;
  gap: 48px;
}

.obs-single-content {
  flex: 1;
  min-width: 0;
}

.obs-single-sidebar {
  display: none;
  width: 300px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .obs-single-sidebar {
    display: block;
  }
}

.obs-single-sidebar-inner {
  position: sticky;
  top: 120px;
}

/* Article header */
.obs-article-header {
  margin-bottom: 32px;
}

.obs-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.obs-article-tag {
  display: inline-block;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(238,88,53,0.08);
  border-radius: 9999px;
  transition: all 0.2s;
}

.obs-article-tag:hover {
  background: rgba(238,88,53,0.15);
}

.obs-article-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin-bottom: 16px;
}

.obs-article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
  flex-wrap: wrap;
}

.obs-article-header-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs-article-header-meta .author img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
}

.obs-article-header-meta .author span {
  font-weight: 500;
  color: #111;
}

/* Rich text article body */
.article-rich-text {
  font-size: 16px;
  line-height: 1.9;
  color: #111111;
  letter-spacing: 0.02em;
}

.article-rich-text p {
  margin-bottom: 1.4em;
  color: #111111;
}

.article-rich-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin-top: 2.4em;
  margin-bottom: 0.8em;
}

.article-rich-text figure {
  margin: 2em 0;
}

.article-rich-text figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.article-rich-text figcaption {
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 8px;
}

.article-rich-text blockquote {
  margin: 2em 0;
  padding: 0;
  color: #2d2d2d;
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  background: none;
  border: none;
}

.article-rich-text blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 12px;
  color: #9CA3AF;
  font-style: normal;
}

/* Sidebar related articles */
.obs-sidebar-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs-sidebar-section h4 .bar {
  width: 4px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 9999px;
}

.obs-sidebar-article {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}

.obs-sidebar-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  background: #f3f4f6;
  color: #9ca3af;
}

.obs-sidebar-num.hot {
  background: var(--color-primary);
  color: #fff;
}

.obs-sidebar-article p {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.obs-sidebar-article:hover p {
  color: var(--color-primary);
}

.obs-sidebar-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 16px 0;
}

.obs-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.obs-sidebar-tags li {
  list-style: none;
}

.obs-sidebar-tags a::before {
  content: '#';
}

.obs-sidebar-tags a {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 9999px;
  transition: all 0.2s;
  display: inline-block;
}

.obs-sidebar-tags a:hover {
  background: rgba(238, 88, 53, 0.1);
  color: var(--color-primary);
}

/* ========================================
   Archive page
   ======================================== */
.obs-archive-header {
  padding-top: 73px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.obs-archive-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .obs-archive-header-inner {
    padding: 32px 64px;
  }
}

.obs-archive-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.obs-archive-header .count {
  font-size: 14px;
  color: #6b7280;
}

.obs-archive-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .obs-archive-main {
    padding: 32px 64px;
  }
}

/* ========================================
   Search & 404
   ======================================== */
.obs-search-header {
  padding-top: 73px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.obs-search-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .obs-search-header-inner {
    padding: 32px 64px;
  }
}

.obs-search-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
}

.obs-search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.obs-search-form input:focus {
  border-color: var(--color-primary);
}

.obs-search-form button {
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.obs-search-form button:hover {
  background: var(--color-primary-hover);
}

.obs-404 {
  padding-top: 73px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.obs-404 h1 {
  font-size: 120px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
}

.obs-404 p {
  font-size: 18px;
  color: #6b7280;
  margin-top: 16px;
}

.obs-404 a {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.obs-404 a:hover {
  background: var(--color-primary-hover);
}

/* ========================================
   Back to top
   ======================================== */
.obs-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.obs-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.obs-back-to-top:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.obs-back-to-top i {
  font-size: 18px;
}

/* ========================================
   Pagination
   ======================================== */
.obs-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.obs-pagination a,
.obs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  transition: all 0.2s;
}

.obs-pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.obs-pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ========================================
   WP specific
   ======================================== */
.wp-block-image img {
  border-radius: 10px;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 16px;
}

.alignright {
  float: right;
  margin-left: 16px;
}

/* Screen reader text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* --- Wechat Share Button --- */
.obs-wechat-share-btn {
  position: fixed;
  z-index: 50;
  bottom: 96px;
  right: calc((100vw - 1400px) / 2 + 316px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-wechat);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  border: none;
}
.obs-wechat-share-btn i { font-size: 24px; }
.obs-wechat-share-btn:hover { background: #06ad56; }
@media (min-width: 1024px) {
  .obs-wechat-share-btn { display: flex; }
}

/* --- Wechat Modal --- */
.obs-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.obs-wechat-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.obs-wechat-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.obs-wechat-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}
.obs-wechat-modal-close:hover { color: #374151; background: #f3f4f6; }
.obs-wechat-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.obs-wechat-modal-header span {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}
.obs-wechat-modal-qr {
  width: 180px;
  height: 180px;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}
.obs-wechat-modal-qr img { width: 100%; height: 100%; object-fit: cover; }
.obs-wechat-modal-tip {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}
