/* ============================================
   糖心 - 手工烘焙甜品教学社区 主样式表
   CSS前缀: tx- (TangXin)
   设计风格: 马卡龙糖果色温馨风
   ============================================ */

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

:root {
  --tx-pink: #FFDDE1;
  --tx-cream: #FFF5E1;
  --tx-blue: #D4F1F4;
  --tx-dark: #5A4A42;
  --tx-text: #6B5B53;
  --tx-text-light: #9B8B83;
  --tx-accent: #F8A5B6;
  --tx-accent-dark: #E8859A;
  --tx-white: #FFFFFF;
  --tx-bg: #FFF9F5;
  --tx-shadow: rgba(90, 74, 66, 0.08);
  --tx-radius: 16px;
  --tx-radius-sm: 10px;
  --tx-transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--tx-text);
  background-color: var(--tx-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tx-accent-dark);
  text-decoration: none;
  transition: color var(--tx-transition);
}

a:hover {
  color: var(--tx-blue);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--tx-dark);
  line-height: 1.4;
  font-weight: 700;
}

/* --- Layout Container --- */
.tx-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Navigation --- */
.tx-header {
  background-color: var(--tx-cream);
  box-shadow: 0 2px 12px var(--tx-shadow);
  position: relative;
  z-index: 100;
}

.tx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
}

.tx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tx-accent-dark);
}

.tx-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.tx-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tx-logo-domain {
  font-size: 0.7rem;
  color: var(--tx-text-light);
  font-weight: 400;
}

.tx-nav-links {
  display: none;
  list-style: none;
  gap: 0;
  width: 100%;
  flex-direction: column;
  padding-top: 12px;
}

.tx-nav-links.tx-nav-active {
  display: flex;
}

.tx-nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--tx-text);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--tx-radius-sm);
  transition: all var(--tx-transition);
}

.tx-nav-link:hover {
  color: #5BC0C8;
  background-color: rgba(212, 241, 244, 0.3);
  transform: scale(1.03);
}

.tx-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-search-box {
  display: none;
  border: 2px solid var(--tx-pink);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 0.85rem;
  outline: none;
  background: var(--tx-white);
  color: var(--tx-text);
  width: 160px;
  transition: border-color var(--tx-transition);
}

.tx-search-box:focus {
  border-color: var(--tx-accent);
}

.tx-btn-join {
  background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark));
  color: var(--tx-white);
  border: none;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx-transition);
  white-space: nowrap;
}

.tx-btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(248, 165, 182, 0.4);
}

.tx-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.tx-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--tx-dark);
  border-radius: 2px;
  transition: all var(--tx-transition);
}

/* --- Hero Banner / Carousel --- */
.tx-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  background-color: var(--tx-pink);
}

.tx-hero-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s ease;
}

.tx-hero-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-hero-slide picture,
.tx-hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 221, 225, 0.7), rgba(255, 245, 225, 0.5));
}

.tx-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 600px;
}

.tx-hero-title {
  font-size: 1.8rem;
  color: var(--tx-dark);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

.tx-hero-subtitle {
  font-size: 1rem;
  color: var(--tx-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tx-hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark));
  color: var(--tx-white);
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--tx-transition);
  border: none;
  cursor: pointer;
}

.tx-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(248, 165, 182, 0.5);
  color: var(--tx-white);
}

.tx-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.tx-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color var(--tx-transition);
  border: none;
}

.tx-hero-dot.tx-active {
  background-color: var(--tx-accent-dark);
}

/* --- Section Common --- */
.tx-section {
  padding: 40px 0;
}

.tx-section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--tx-dark);
}

.tx-section-desc {
  text-align: center;
  color: var(--tx-text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* --- Video Section --- */
.tx-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tx-video-card {
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--tx-shadow);
  transition: transform var(--tx-transition), box-shadow var(--tx-transition);
}

.tx-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(90, 74, 66, 0.12);
}

.tx-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--tx-pink);
}

.tx-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--tx-radius) var(--tx-radius) 0 0;
}

.tx-video-info {
  padding: 16px;
}

.tx-video-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tx-dark);
}

.tx-video-meta {
  font-size: 0.8rem;
  color: var(--tx-text-light);
}

/* --- Star Ranking --- */
.tx-ranking-list {
  list-style: none;
}

.tx-ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--tx-white);
  border-radius: var(--tx-radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px var(--tx-shadow);
  transition: transform var(--tx-transition);
}

.tx-ranking-item:hover {
  transform: translateX(4px);
}

.tx-ranking-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--tx-white);
  background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark));
  flex-shrink: 0;
}

.tx-ranking-badge.tx-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.tx-ranking-badge.tx-silver {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.tx-ranking-badge.tx-bronze {
  background: linear-gradient(135deg, #CD7F32, #B87333);
}

.tx-ranking-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tx-pink);
  flex-shrink: 0;
}

.tx-ranking-info {
  flex: 1;
}

.tx-ranking-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tx-dark);
}

.tx-ranking-stats {
  font-size: 0.8rem;
  color: var(--tx-text-light);
}

/* --- Story Cards --- */
.tx-story-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tx-story-card {
  display: flex;
  gap: 16px;
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  padding: 16px;
  box-shadow: 0 4px 16px var(--tx-shadow);
  transition: transform var(--tx-transition);
  flex-direction: column;
  align-items: center;
}

.tx-story-card:hover {
  transform: translateY(-3px);
}

.tx-story-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--tx-pink);
}

.tx-story-content {
  flex: 1;
}

.tx-story-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tx-dark);
}

.tx-story-excerpt {
  font-size: 0.9rem;
  color: var(--tx-text);
  line-height: 1.7;
}

/* --- Wish Wall --- */
.tx-wish-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tx-wish-card {
  padding: 20px;
  border-radius: var(--tx-radius);
  box-shadow: 0 3px 12px var(--tx-shadow);
  transform: rotate(-1deg);
  transition: transform var(--tx-transition);
  line-height: 1.6;
}

.tx-wish-card:nth-child(odd) {
  background: var(--tx-pink);
  transform: rotate(1deg);
}

.tx-wish-card:nth-child(even) {
  background: var(--tx-blue);
  transform: rotate(-1.5deg);
}

.tx-wish-card:nth-child(3n) {
  background: var(--tx-cream);
  transform: rotate(0.5deg);
}

.tx-wish-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.tx-wish-text {
  font-size: 0.95rem;
  color: var(--tx-dark);
  margin-bottom: 8px;
}

.tx-wish-author {
  font-size: 0.8rem;
  color: var(--tx-text-light);
  text-align: right;
}

/* --- Daily Check-in --- */
.tx-checkin-section {
  background: linear-gradient(135deg, var(--tx-cream), var(--tx-pink));
  border-radius: var(--tx-radius);
  padding: 30px 20px;
  text-align: center;
}

.tx-checkin-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tx-accent-dark);
  margin-bottom: 8px;
}

.tx-checkin-label {
  font-size: 0.9rem;
  color: var(--tx-text);
  margin-bottom: 20px;
}

.tx-checkin-btn {
  background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark));
  color: var(--tx-white);
  border: none;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx-transition);
}

.tx-checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(248, 165, 182, 0.5);
}

.tx-checkin-btn.tx-checked {
  background: var(--tx-blue);
  color: var(--tx-dark);
}

.tx-checkin-messages {
  margin-top: 20px;
  max-height: 120px;
  overflow: hidden;
}

.tx-checkin-msg {
  font-size: 0.85rem;
  color: var(--tx-text);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(90, 74, 66, 0.1);
}

/* --- Tool Recommend --- */
.tx-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tx-tool-card {
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--tx-shadow);
  transition: transform var(--tx-transition);
}

.tx-tool-card:hover {
  transform: translateY(-4px);
}

.tx-tool-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tx-tool-info {
  padding: 16px;
}

.tx-tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: 6px;
}

.tx-tool-desc {
  font-size: 0.85rem;
  color: var(--tx-text);
  line-height: 1.6;
}

/* --- Expert Column --- */
.tx-expert-section {
  background: var(--tx-cream);
  border-radius: var(--tx-radius);
  padding: 30px 20px;
}

.tx-expert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.tx-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--tx-pink);
}

.tx-expert-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tx-dark);
}

.tx-expert-title-text {
  font-size: 0.85rem;
  color: var(--tx-text-light);
}

.tx-expert-quote {
  font-size: 0.95rem;
  color: var(--tx-text);
  font-style: italic;
  line-height: 1.7;
  padding: 16px;
  background: var(--tx-white);
  border-radius: var(--tx-radius-sm);
  border-left: 4px solid var(--tx-accent);
}

/* --- Footer --- */
.tx-footer {
  background: var(--tx-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 0;
}

.tx-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.tx-footer-col h3 {
  color: var(--tx-pink);
  font-size: 1rem;
  margin-bottom: 14px;
}

.tx-footer-col p,
.tx-footer-col li {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.tx-footer-col ul {
  list-style: none;
}

.tx-footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--tx-transition);
}

.tx-footer-col a:hover {
  color: var(--tx-pink);
}

.tx-footer-honors {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.tx-honor-item {
  display: inline-block;
  margin: 6px 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.tx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.tx-auth-number {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Inner Page Common --- */
.tx-page-hero {
  background: linear-gradient(135deg, var(--tx-pink), var(--tx-cream));
  padding: 50px 20px;
  text-align: center;
}

.tx-page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.tx-page-hero p {
  font-size: 1rem;
  color: var(--tx-text);
}

.tx-breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--tx-text-light);
}

.tx-breadcrumb a {
  color: var(--tx-accent-dark);
}

.tx-breadcrumb span {
  margin: 0 6px;
}

.tx-content-area {
  padding: 30px 0;
}

/* --- Article / Recipe Card --- */
.tx-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tx-article-card {
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--tx-shadow);
  transition: transform var(--tx-transition);
}

.tx-article-card:hover {
  transform: translateY(-4px);
}

.tx-article-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tx-article-body {
  padding: 20px;
}

.tx-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tx-dark);
}

.tx-article-excerpt {
  font-size: 0.9rem;
  color: var(--tx-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tx-article-meta {
  font-size: 0.8rem;
  color: var(--tx-text-light);
}

/* --- Wish Page --- */
.tx-wish-page-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tx-wish-list-col,
.tx-wish-form-col {
  flex: 1;
}

.tx-wish-form {
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  padding: 24px;
  box-shadow: 0 4px 20px var(--tx-shadow);
}

.tx-form-group {
  margin-bottom: 16px;
}

.tx-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tx-dark);
  margin-bottom: 6px;
}

.tx-form-input,
.tx-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--tx-pink);
  border-radius: var(--tx-radius-sm);
  font-size: 0.9rem;
  color: var(--tx-text);
  background: var(--tx-bg);
  outline: none;
  transition: border-color var(--tx-transition);
  font-family: inherit;
}

.tx-form-input:focus,
.tx-form-textarea:focus {
  border-color: var(--tx-accent);
}

.tx-form-textarea {
  min-height: 100px;
  resize: vertical;
}

.tx-form-file {
  display: block;
  width: 100%;
  padding: 10px;
  border: 2px dashed var(--tx-pink);
  border-radius: var(--tx-radius-sm);
  text-align: center;
  color: var(--tx-text-light);
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--tx-bg);
}

.tx-form-submit {
  background: linear-gradient(135deg, var(--tx-accent), var(--tx-accent-dark));
  color: var(--tx-white);
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx-transition);
  width: 100%;
}

.tx-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(248, 165, 182, 0.5);
}

/* --- App Download Page --- */
.tx-app-hero {
  background: linear-gradient(135deg, var(--tx-pink), var(--tx-blue));
  padding: 60px 20px;
  text-align: center;
}

.tx-app-mockup {
  max-width: 260px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(90, 74, 66, 0.15);
}

.tx-download-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.tx-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tx-dark);
  color: var(--tx-white);
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--tx-transition);
  min-width: 220px;
  justify-content: center;
}

.tx-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(90, 74, 66, 0.2);
  color: var(--tx-white);
}

.tx-download-btn.tx-ios {
  background: linear-gradient(135deg, #333, #555);
}

.tx-download-btn.tx-android {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
}

/* --- Modal --- */
.tx-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.tx-modal-overlay.tx-show {
  display: flex;
}

.tx-modal-content {
  background: var(--tx-white);
  border-radius: var(--tx-radius);
  padding: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.tx-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  color: var(--tx-text-light);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.tx-modal-video {
  width: 100%;
  border-radius: var(--tx-radius-sm);
}

/* --- Wish Animation --- */
.tx-wish-animation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 221, 225, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tx-wish-animation.tx-show {
  display: flex;
}

.tx-wish-anim-icon {
  width: 80px;
  height: 80px;
  background: var(--tx-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tx-bounce 0.6s ease infinite alternate;
  margin-bottom: 20px;
  font-size: 2rem;
}

@keyframes tx-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}

.tx-wish-anim-text {
  font-size: 1.2rem;
  color: var(--tx-dark);
  font-weight: 700;
  text-align: center;
}

/* --- Notification --- */
.tx-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--tx-white);
  padding: 16px 24px;
  border-radius: var(--tx-radius-sm);
  box-shadow: 0 4px 20px var(--tx-shadow);
  border-left: 4px solid var(--tx-accent);
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  font-size: 0.95rem;
  color: var(--tx-dark);
}

.tx-notification.tx-show {
  transform: translateX(0);
}

/* --- Responsive: 768px --- */
@media (min-width: 768px) {
  .tx-container {
    padding: 0 24px;
  }

  .tx-hero {
    height: 65vh;
  }

  .tx-hero-title {
    font-size: 2.4rem;
  }

  .tx-hero-subtitle {
    font-size: 1.15rem;
  }

  .tx-section {
    padding: 50px 0;
  }

  .tx-section-title {
    font-size: 1.8rem;
  }

  .tx-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-story-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .tx-wish-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-wish-page-layout {
    flex-direction: row;
  }

  .tx-download-btns {
    flex-direction: row;
    justify-content: center;
  }

  .tx-search-box {
    display: block;
  }
}

/* --- Responsive: 1024px --- */
@media (min-width: 1024px) {
  .tx-container {
    padding: 0 40px;
  }

  .tx-nav-links {
    display: flex;
    flex-direction: row;
    gap: 4px;
    width: auto;
    padding-top: 0;
  }

  .tx-hamburger {
    display: none;
  }

  .tx-hero {
    height: 70vh;
  }

  .tx-hero-title {
    font-size: 2.8rem;
  }

  .tx-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tx-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tx-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tx-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tx-expert-card {
    flex-direction: row;
    text-align: left;
  }

  .tx-section {
    padding: 60px 0;
  }
}

/* --- Responsive: 1440px --- */
@media (min-width: 1440px) {
  .tx-container {
    padding: 0 60px;
  }

  .tx-hero-title {
    font-size: 3.2rem;
  }

  .tx-section-title {
    font-size: 2rem;
  }
}

/* --- Utility --- */
.tx-text-center {
  text-align: center;
}

.tx-mt-20 {
  margin-top: 20px;
}

.tx-mb-20 {
  margin-bottom: 20px;
}

.tx-hidden {
  display: none;
}

/* --- Gingham / Checkered Pattern Background --- */
.tx-pattern-bg {
  background-image: 
    linear-gradient(45deg, rgba(255, 221, 225, 0.3) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 221, 225, 0.3) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 221, 225, 0.3) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 221, 225, 0.3) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tx-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--tx-pink);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tx-accent);
}
