/* 月牙缘珠宝 · 竖屏手机官方展示站 */
:root {
  --jade: #6b8e23;
  --jade-dark: #556b2f;
  --jade-deep: #2d5016;
  --bg: #f7f8f5;
  --card: #ffffff;
  --text: #333333;
  --muted: #6b7280;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(3.75rem + var(--safe-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.m-wrap {
  max-width: 480px;
  margin: 0 auto;
}

/* 顶栏 */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 142, 35, 0.15);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.m-brand img {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}

.m-brand-text strong {
  display: block;
  font-size: 1rem;
  color: var(--jade-deep);
  line-height: 1.2;
}

.m-brand-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--jade-dark);
}

.m-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.m-header-actions a {
  color: var(--jade-dark);
  font-weight: 500;
}

/* 竖屏海报轮播 */
.m-hero {
  position: relative;
  background: #111;
}

.m-hero-viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.m-hero-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.m-hero-slide {
  flex: 0 0 100%;
  width: 100%;
}

.m-hero-slide img {
  width: 100%;
  height: auto;
  min-height: 58vh;
  max-height: 78vh;
  object-fit: cover;
  object-position: center top;
}

.m-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.m-hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.m-hero-dot.is-active {
  width: 1.1rem;
  background: var(--jade);
}

.m-slogan-bar {
  text-align: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, var(--jade-deep), var(--jade));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

/* 快捷入口 */
.m-section {
  padding: 1rem;
}

.m-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.m-section-title h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--jade-deep);
}

.m-section-title a {
  font-size: 0.75rem;
  color: var(--jade);
}

.m-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.m-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.m-nav-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  padding: 0.7rem 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.m-nav-card .icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.m-nav-card.is-primary {
  background: var(--jade);
  color: #fff;
  border-color: var(--jade);
}

/* 卡片 */
.m-card {
  background: var(--card);
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.m-card img.cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.m-card-body {
  padding: 0.65rem 0.75rem 0.75rem;
}

.m-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--jade-deep);
}

.m-card-body p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.m-banner-card img {
  width: 100%;
  border-radius: 0.55rem;
}

.m-intro {
  background: var(--card);
  border-radius: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.7;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.m-tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(107, 142, 35, 0.1);
  color: var(--jade-dark);
}

/* 联系区 */
.m-contact {
  background: linear-gradient(160deg, var(--jade-deep), var(--jade-dark));
  color: #fff;
  padding: 1.25rem 1rem;
  border-radius: 0.65rem;
}

.m-contact h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-align: center;
}

.m-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.78rem;
}

.m-contact-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.m-contact-list li:last-child {
  border-bottom: none;
}

.m-qr-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.m-qr-item {
  text-align: center;
  font-size: 0.68rem;
}

.m-qr-item img {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 0.4rem;
  background: #fff;
  border-radius: 0.35rem;
  padding: 0.25rem;
}

.m-desktop-link {
  display: block;
  text-align: center;
  margin: 0.75rem 1rem 0;
  font-size: 0.72rem;
  color: var(--jade);
}

.m-footer-copy {
  text-align: center;
  font-size: 0.65rem;
  color: #9ca3af;
  padding: 0.5rem 1rem 0.25rem;
}

/* 底部固定导航 */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-bottom: var(--safe-bottom);
  max-width: 480px;
  margin: 0 auto;
}

.m-tabbar a {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0 0.35rem;
  font-size: 0.62rem;
  color: var(--muted);
}

.m-tabbar a .icon {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.m-tabbar a.is-active {
  color: var(--jade);
  font-weight: 600;
}

/* 微信二维码浮层 */
.m-wechat-wrap {
  position: relative;
}

.m-wechat-popup {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 9.5rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid rgba(107, 142, 35, 0.3);
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.25s ease;
  z-index: 100;
}

.m-wechat-wrap:focus-within .m-wechat-popup,
.m-wechat-wrap:hover .m-wechat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.m-wechat-popup img {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.35rem;
}

.m-wechat-popup p {
  margin: 0;
  font-size: 0.62rem;
  color: var(--jade-dark);
}
