:root {
  /* Colors */
  --bg-color: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: #007AFF;
  /* iOS Blue-ish */
  --border-color: #eaeaea;
  --bg-secondary: #f9f9f9;
  --footer-bg-color: #d3d3d3;
  --footer-text-color: #4f4f4f;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 15px;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Layout */
  --container-width: 800px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
}


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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a:hover {
  opacity: 0.7;
}

.contact-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
}

.anqie-home-section {
  padding-top: 6rem;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.site-title {
  font-weight: var(--font-weight-bold);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.h1 {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.h2 {
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.h3 {
  font-size: 1.15rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-xs);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 12px 24px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  /* Override default link hover */
  background-color: #000;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  background-color: #666;
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform 0.2s ease;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.app-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
}

.app-card-content {
  flex: 1;
}

.app-card-content .h3 {
  margin-bottom: 0.25rem;
}

/* 404 page specific styles */
.section-not-found {
  min-height: calc(100vh - var(--header-height) - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-not-found .container {
  max-width: 640px;
}

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: var(--spacing-xs);
}

.btn-home {
  margin-top: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.mobile-break {
  display: inline;
}

/* Footer */
.site-footer {
  position: relative;
  padding: var(--spacing-lg) 0;
  padding-top: calc(var(--spacing-lg) + 1.5rem);
  border-top: none;
  margin-top: var(--spacing-lg);
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  font-size: 0.8125rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 48' preserveAspectRatio='none'%3E%3Cpath fill='%23d3d3d3' d='M0 48V24C27 10 53 10 80 24C107 38 133 38 160 24C187 10 213 10 240 24C267 38 293 38 320 24V48H0Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 320px 48px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Privacy Policy Specifics */
.privacy-content {
  max-width: 680px;
  margin: 0 auto;
}

.privacy-content p {
  margin-bottom: var(--spacing-sm);
}

.privacy-content ul {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
}

.privacy-content li {
  margin-bottom: var(--spacing-xs);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  :root {
    --font-size-base: 13px;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --header-height: 60px;
  }

  .h1 {
    font-size: 1.6rem;
  }

  .h2 {
    font-size: 1.4rem;
  }

  .h3 {
    font-size: 1.05rem;
  }

  .site-title {
    font-size: 1.05rem;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-card-icon {
    width: 50px;
    height: 50px;
  }

  .section {
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
  }

  .anqie-home-section {
    padding-top: 5rem;
  }

  .mobile-break {
    display: block;
  }

  .site-footer::before {
    top: -34px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 35' preserveAspectRatio='none'%3E%3Cpath fill='%23d3d3d3' d='M0 35V18C13 10 27 10 40 18C53 26 67 26 80 18C93 10 107 10 120 18C133 26 147 26 160 18V35H0Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 160px 35px;
  }

}

/* Step List Styles (Unified) */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.step-item {
  position: relative;
  padding-left: 3.2em;
  margin-bottom: var(--spacing-md);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2em;
  height: 2.2em;
  background-color: #f4bc96;
  color: var(--bg-color);
  border-radius: 50%;
  text-align: center;
  line-height: 2.2em;
  font-weight: bold;
  font-size: 1.1em;
}

/* Table Styles (Unified) */
.example-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-sm) 0;
  font-size: 0.9em;
}

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

.example-table th {
  background-color: var(--bg-secondary);
  font-weight: var(--font-weight-medium);
}

/* Note/Alert Styles (Unified) */
.note {
  background-color: var(--bg-secondary);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin: var(--spacing-md) 0;
  font-size: 0.9em;
}

.note h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1em;
}

.note ul {
  padding-left: 1.5em;
  margin: 0;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  width: 130px;
  height: auto;
}

.contact-actions {
  display: grid;
  gap: 10rem;
  justify-items: center;
}

.anqie-footer-links {
  max-width: 760px;
  text-align: left;
}

.anqie-footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 24px;
}

.anqie-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.anqie-footer-legal .contact-link {
  text-decoration: none;
}

.anqie-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.anqie-footer-store {
  flex-shrink: 0;
}

.anqie-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.anqie-footer-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.anqie-footer-brand-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  opacity: 0.8;
  padding-left: 3px;
}

.anqie-footer-store .text-secondary {
  margin: 0;
}

.anqie-footer-links>p {
  font-size: 12px;
  text-align: center;
}

.txt-tool-lead {
  max-width: 640px;
  margin: 0 auto;
}

.txt-tool-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.txt-tool-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: var(--font-weight-medium);
}

.txt-tool-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.txt-tool-inline-head .txt-tool-label {
  margin-bottom: 0;
}

.txt-tool-input,
.txt-tool-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
}

.txt-tool-input:focus,
.txt-tool-textarea:focus {
  outline: none;
  border-color: #000;
  border-width: 2px;
}

.txt-tool-input {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
}

.txt-tool-textarea {
  min-height: 220px;
  padding: 0.8rem;
  resize: vertical;
  line-height: 1.6;
}

.txt-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.txt-tool-actions--compact {
  margin-top: 0.35rem;
  margin-bottom: var(--spacing-sm);
}

.txt-tool-actions--end {
  justify-content: flex-end;
}

.txt-tool-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.txt-tool-secondary-btn:hover {
  background-color: #f3f3f3;
}

.txt-tool-secondary-btn:focus-visible {
  outline: none;
  border-color: #000;
  border-width: 2px;
}

.txt-tool-danger-btn {
  border-color: #f2c3c3;
  background-color: #fff1f1;
  color: #9f1f1f;
}

.txt-tool-danger-btn:hover {
  background-color: #ffdede;
}

.txt-tool-danger-btn:focus-visible {
  border-color: #9f1f1f;
}

.txt-tool-small-btn {
  min-height: 26px;
  padding: 0.12rem 0.48rem;
  font-size: 0.75rem;
}

.txt-tool-text-link {
  border: 0;
  padding: 0;
  margin: 0;
  margin-right: 10px;
  background: transparent;
  color: #a83333;
  font-family: var(--font-family);
  font-size: 0.82rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.txt-tool-text-link:hover {
  opacity: 0.7;
}

.txt-tool-text-link:focus-visible {
  outline: 2px solid #a83333;
  outline-offset: 2px;
  border-radius: 2px;
}

.txt-tool-push-right {
  margin-left: auto;
}

.txt-tool-toggle-group {
  border: 0;
  margin-top: var(--spacing-md);
  padding: 0;
}

.txt-tool-toggle-label {
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.txt-tool-toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.txt-tool-toggle-option input {
  margin: 0;
}

.txt-tool-message {
  min-height: 1.5em;
  margin-top: 0.6rem;
  color: var(--text-secondary);
}

.txt-tool-message.is-error {
  color: #c0392b;
}

@media (max-width: 768px) {
  .anqie-footer-store .app-store-badge img {
    width: 115px;
  }
}

/* =====================
   WITHFOCUS FOOTER
===================== */
.footer {
  background: #4d3b30;
  padding: 60px 24px 32px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FAF6F1;
}

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

.footer-links a {
  color: #D4BEB0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #FAF6F1;
}

.footer-copy {
  font-size: 12px;
  color: #C8B4A4;
  text-align: center;
}

@media (max-width: 520px) {
  .footer-app .app-store-badge img {
    width: 115px;
  }
}
