/* JJ881 修止符官网全局样式 */

:root {
  --color-brand: #a8c5a0;
  --color-brand-dark: #6b8f65;
  --color-brand-light: #d4e8cf;
  --color-bg: #fafbf9;
  --color-bg-alt: #f0f4ee;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: rgba(26, 26, 26, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "PingFang SC", "Songti SC", "Noto Serif SC", serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(107, 143, 101, 0.15);
  --header-height: 72px;
  --max-width: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-text);
}

ul {
  list-style: none;
}

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

/* JJ881 导航栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 251, 249, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.logo-text strong {
  font-size: 1.05rem;
}

.logo-text small {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.logo:hover {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-dark);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* JJ881 Hero 区域 */
.hero {
  padding: calc(var(--header-height) + 80px) 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, var(--color-brand-light) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-brand-dark);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-brand-dark);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-brand-dark);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.phone-mockup img {
  border-radius: 24px;
  width: 100%;
}

/* JJ881 企业信息卡片 */
.org-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.org-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-brand);
}

.org-dl dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 14px;
}

.org-dl dt:first-child {
  margin-top: 0;
}

.org-dl dd {
  font-size: 0.95rem;
  margin-top: 4px;
  line-height: 1.5;
}

/* JJ881 服务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.service-card ul {
  list-style: disc;
  padding-left: 20px;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* JJ881 联系邮箱框 */
.contact-email-box {
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 16px;
}

.contact-email-box p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.contact-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* JJ881 公司信息表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.info-table th {
  width: 140px;
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
}

.info-table td {
  color: var(--color-text-muted);
}

.about-page .container {
  max-width: 800px;
}

/* JJ881 通用区块 */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* JJ881 关于我们 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-brand-dark);
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* JJ881 产品特性 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* JJ881 产品展示 */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-info > p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.product-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.product-highlights li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-visual {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.app-card {
  padding: 32px;
  background: var(--color-brand);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.app-card img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.app-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  min-width: 180px;
}

.store-badge:hover {
  background: var(--color-brand-dark);
  color: #fff;
  transform: scale(1.03);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 400;
}

/* JJ881 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  border-radius: 12px;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
}

.contact-card {
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-card > p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-dark);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* JJ881 页脚 */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-brand);
}

/* JJ881 法律文档页 */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 48px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-text-muted);
}

.legal-content {
  padding: 64px 0 100px;
}

.legal-content .container {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content .update-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* JJ881 动画已禁用：Apple 审核需无 JS 即可见完整内容 */
.fade-in {
  opacity: 1;
  transform: none;
}

/* JJ881 语言切换条 */
.lang-bar {
  background: var(--color-brand-dark);
  color: #fff;
  font-size: 0.88rem;
  padding: 8px 0;
  text-align: center;
}

.lang-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-bar a:hover {
  color: var(--color-brand-light);
}

/* JJ881 域名归属说明（Apple 审核重点） */
.domain-verify {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand-dark);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 48px;
}

.domain-verify h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.domain-verify p {
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.domain-verify strong {
  color: var(--color-text);
}

/* JJ881 英文内容区块 */
.english-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.english-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.english-section .section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
}

.english-section p,
.english-section li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.english-section ul {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

.english-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.english-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
}

.english-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.english-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 0.92rem;
}

.english-card dt {
  color: var(--color-text-muted);
  font-weight: 500;
}

.english-card dd {
  color: var(--color-text);
  margin: 0;
}

/* JJ881 响应式 */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .product-showcase,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .logo-text small {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .english-grid {
    grid-template-columns: 1fr;
  }

  .english-section {
    padding: 32px 24px;
  }

  .domain-verify {
    padding: 20px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
