/* 上海鱼腥草信息科技有限公司 — 企业官网 */
:root {
  --brand: #8B1A2B;
  --brand-dark: #6E1222;
  --brand-light: #fdf2f4;
  --accent: #1e3a5f;
  --accent-light: #2d4a6f;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e8e8e8;
  --shadow: 0 4px 24px rgba(139, 26, 43, 0.08);
  --radius: 12px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img,
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(165deg, var(--brand-light) 0%, #fff 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--brand-dark);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 26, 43, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.app-card-mini {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.app-card-mini.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  border: none;
}

.app-card-mini h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.app-card-mini p {
  font-size: 0.85rem;
  opacity: 0.9;
}

section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(139, 26, 43, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 4px;
  font-size: 0.72rem;
  margin-right: 0.3rem;
  margin-top: 0.35rem;
}

.tag.dev {
  background: #fef3c7;
  color: #b45309;
}

.card.tool-card {
  border-color: #bbf7d0;
  background: linear-gradient(160deg, #f0fdf4 0%, #fff 70%);
}

.product-hero-tool {
  background: linear-gradient(165deg, #ecfdf5, #f8fafc);
}

.product-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.product-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.company-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.company-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.company-card.highlight {
  border-color: #e8c4a8;
  background: linear-gradient(160deg, #fffbf7 0%, #ffffff 60%);
}

.company-card h3 {
  font-size: 1.05rem;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.company-card .company-role {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.company-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.company-card li {
  padding: 0.3rem 0;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-split ul {
  list-style: none;
}

.about-split li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.about-split li span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--brand);
}

.stat-box span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.subsidiary-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

.subsidiary-banner.amber {
  background: linear-gradient(135deg, #9a3412, #c2410c);
}

.subsidiary-banner h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.subsidiary-banner p {
  opacity: 0.95;
  max-width: 720px;
  font-size: 0.95rem;
}

.subsidiary-banner a {
  color: #fde68a;
}

.mini-list {
  display: grid;
  gap: 1rem;
}

.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mini-item .num {
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.page-hero {
  padding: 2.75rem 0 2rem;
  background: linear-gradient(165deg, var(--brand-light), var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--brand-dark);
  margin-bottom: 0.45rem;
}

.page-hero p {
  color: var(--text-muted);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.85rem;
  color: var(--brand-dark);
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.prose ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.prose th {
  background: #f5f5f5;
}

.link-list {
  list-style: none;
}

.link-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.link-list a {
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info dt {
  font-weight: 600;
  margin-top: 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  color: var(--text-muted);
  margin-left: 0;
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.download-links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.download-links a:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.download-links a.secondary {
  background: var(--accent);
}

.download-links a.secondary:hover {
  background: var(--accent-light);
}

/* 微信内打开 — 引导用 Safari / 浏览器 */
.wechat-guide {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.wechat-guide.show {
  display: block;
}

.wechat-guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.wechat-guide-arrow {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(-45deg);
  animation: wechat-bounce 1.2s ease-in-out infinite;
}

@keyframes wechat-bounce {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50% { transform: rotate(-45deg) translate(6px, -6px); }
}

.wechat-guide-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 88vw);
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.wechat-guide-panel h3 {
  font-size: 1.05rem;
  color: var(--brand-dark);
  margin-bottom: 0.85rem;
}

.wechat-guide-panel p,
.wechat-guide-panel li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
}

.wechat-guide-panel ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
}

.wechat-guide-panel strong {
  color: var(--text);
}

.wechat-guide-close {
  width: 100%;
  margin-top: 0.25rem;
}

.wechat-top-tip {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.82rem;
  padding: 0.55rem 2.5rem 0.55rem 0.85rem;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.wechat-top-tip.show {
  display: block;
}

.wechat-top-tip-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

body.wechat-env {
  padding-top: 2.75rem;
}

body.wechat-env .site-header {
  top: 2.75rem;
}

.site-footer {
  background: var(--accent);
  color: #b8c5d6;
  padding: 2.75rem 0 1.25rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-grid h4 {
  color: white;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.footer-grid a {
  display: block;
  color: #b8c5d6;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.85;
}

.footer-bottom a {
  color: #b8c5d6;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-split,
  .contact-grid,
  .footer-grid,
  .company-duo {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 4vw;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    grid-template-columns: 1fr;
  }

  .app-card-mini.featured {
    grid-column: span 1;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .logo img {
    height: 44px;
  }
}
