/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; outline: none; border: none; }
img { max-width: 100%; display: block; }

/* ========== Layout Container ========== */
.container {
  max-width: 12rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 0.2rem;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0e6e6;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0.8rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 20px;
  font-weight: 700;
  color: #c8102e;
}
.logo-icon {
  width: 0.4rem;
  height: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 0.32rem; }
.nav a {
  font-size: 16px;
  color: #555;
  position: relative;
}
.nav a:hover { color: #c8102e; }
.nav a.active { color: #c8102e; font-weight: 600; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04rem;
  height: 3px;
  background: #c8102e;
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.05rem;
  cursor: pointer;
  padding: 0.05rem;
}
.nav-toggle span {
  width: 0.25rem;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, #1a0a1e 0%, #3d0f1a 40%, #6b1428 100%);
  padding: 0.8rem 0 0.6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -0.3rem;
  right: -0.5rem;
  width: 6rem;
  height: 6rem;
  background: radial-gradient(circle, rgba(232,76,61,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: -0.3rem;
  width: 4rem;
  height: 4rem;
  background: radial-gradient(circle, rgba(246,166,35,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 8rem;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  padding: 0.06rem 0.2rem;
  background: rgba(232,76,61,.15);
  border: 1px solid rgba(232,76,61,.3);
  border-radius: 0.2rem;
  font-size: 14px;
  color: #ff9b8a;
  margin-bottom: 0.24rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.16rem;
  letter-spacing: 2px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #f6a623, #e84c3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 6rem;
  margin: 0 auto 0.36rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 28px;
  font-weight: 700;
  color: #f6a623;
}
.hero-stat .label {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

/* ========== Tool Section ========== */
.tool-section {
  padding: 0.5rem 0 0.6rem;
  background: #faf5f5;
}
.tool-card {
  max-width: 9rem;
  margin: -0.5rem auto 0;
  background: #fff;
  border-radius: 0.16rem;
  box-shadow: 0 4px 30px rgba(107,20,40,.08);
  padding: 0.4rem;
  position: relative;
  z-index: 10;
}
.tool-tabs {
  display: flex;
  gap: 0.04rem;
  margin-bottom: 0.24rem;
  border-bottom: 2px solid #f5f0f0;
}
.tool-tab {
  padding: 0.12rem 0.24rem;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tool-tab.active {
  color: #c8102e;
  font-weight: 600;
}
.tool-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #c8102e;
  border-radius: 2px;
}
.tool-input-wrap {
  position: relative;
}
.tool-textarea {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.2rem;
  border: 2px solid #eee;
  border-radius: 0.12rem;
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
  transition: border-color .2s;
  color: #333;
}
.tool-textarea:focus { border-color: #e84c3d; }
.tool-textarea::placeholder { color: #ccc; }
.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.16rem 0;
  flex-wrap: wrap;
  gap: 0.1rem;
}
.tool-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  font-size: 14px;
  color: #999;
}
.tool-toolbar-left .char-count { color: #c8102e; font-weight: 600; }
.tool-toolbar-left .sep { color: #ddd; }
.tool-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  padding: 0.1rem 0.28rem;
  border-radius: 0.08rem;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #e84c3d, #c8102e);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(200,16,46,.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #f5f0f0;
  color: #666;
}
.btn-secondary:hover { background: #ebe5e5; }

/* Tool Result */
.tool-result {
  margin-top: 0.24rem;
  padding: 0.28rem;
  background: #faf5f5;
  border-radius: 0.12rem;
  display: none;
}
.tool-result.show { display: block; }

/* Result Comparison */
.result-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.24rem;
  flex-wrap: wrap;
}
.result-compare-item {
  text-align: center;
  flex: 1;
  min-width: 1.6rem;
  max-width: 2.4rem;
  padding: 0.16rem;
  background: #fff;
  border-radius: 0.08rem;
  border: 1px solid #f0e6e6;
}
.compare-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 0.04rem;
}
.compare-value {
  font-size: 28px;
  font-weight: 800;
  color: #333;
}
.compare-value.high { color: #e84c3d; }
.compare-value.low { color: #4ade80; }
.compare-value.reduce { color: #f6a623; }
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rewritten Text Output */
.result-rewritten {
  margin-bottom: 0.16rem;
  background: #fff;
  border-radius: 0.08rem;
  border: 1px solid #f0e6e6;
  overflow: hidden;
}
.rewritten-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.12rem 0.16rem;
  background: #faf5f5;
  border-bottom: 1px solid #f0e6e6;
}
.rewritten-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.rewritten-text {
  padding: 0.16rem;
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  max-height: 4rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-hint {
  margin-top: 0.16rem;
  padding: 0.12rem 0.16rem;
  background: #fff8e6;
  border: 1px solid #ffe8a3;
  border-radius: 0.08rem;
  font-size: 14px;
  color: #946600;
  display: flex;
  align-items: flex-start;
  gap: 0.06rem;
}

/* ========== Section Common ========== */
.section { padding: 0.6rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.1rem;
}
.section-title p {
  font-size: 16px;
  color: #999;
}
.section-title .divider {
  width: 0.6rem;
  height: 4px;
  background: linear-gradient(90deg, #e84c3d, #f6a623);
  border-radius: 2px;
  margin: 0.12rem auto 0;
}

/* ========== Features ========== */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.24rem;
}
.feature-card {
  padding: 0.36rem 0.28rem;
  background: #fafafa;
  border-radius: 0.12rem;
  border: 1px solid #f5f0f0;
  text-align: center;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107,20,40,.08);
  border-color: #e84c3d;
}
.feature-icon {
  width: 0.64rem;
  height: 0.64rem;
  margin: 0 auto 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0ed, #ffe8a3);
  border-radius: 50%;
}
.feature-icon svg { width: 0.32rem; height: 0.32rem; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.08rem;
}
.feature-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* ========== How It Works ========== */
.how-it-works { background: #faf5f5; }
.steps {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 15%;
  right: 15%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #e84c3d 0, #e84c3d 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 3rem;
}
.step-num {
  width: 0.8rem;
  height: 0.8rem;
  margin: 0 auto 0.16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e84c3d, #c8102e);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(200,16,46,.25);
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.06rem;
}
.step p {
  font-size: 14px;
  color: #888;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 8rem;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid #f0e6e6;
  border-radius: 0.08rem;
  margin-bottom: 0.12rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.24rem;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: background .2s;
}
.faq-question:hover { background: #faf5f5; }
.faq-question .arrow {
  width: 0.2rem;
  height: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 0.24rem;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 3rem;
  padding: 0 0.24rem 0.2rem;
}

/* ========== Legal/Disclaimer Section ========== */
.legal-section {
  background: #1a0a1e;
  padding: 0.5rem 0;
}
.legal-section .section-title h2 { color: #fff; }
.legal-section .section-title p { color: rgba(255,255,255,.5); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.16rem 0.32rem;
  max-width: 8rem;
  margin: 0 auto;
}
.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  padding: 0.08rem 0.2rem;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0.06rem;
  transition: all .2s;
}
.legal-link:hover {
  color: #f6a623;
  border-color: rgba(246,166,35,.3);
  background: rgba(246,166,35,.05);
}
.legal-desc {
  text-align: center;
  margin-top: 0.3rem;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  max-width: 8rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ========== Footer ========== */
.footer {
  background: #0f0510;
  padding: 0.4rem 0 0.24rem;
  color: rgba(255,255,255,.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.36rem;
}
.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 0.16rem;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}
.footer-col ul li {
  margin-bottom: 0.08rem;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.footer-col ul li a:hover { color: #f6a623; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 0.2rem;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #f6a623; }
.footer-icp {
  margin-top: 0.06rem;
  display: flex;
  justify-content: center;
  gap: 0.16rem;
  flex-wrap: wrap;
}

/* ========== Sub Page Common ========== */
.page-hero {
  background: linear-gradient(135deg, #1a0a1e 0%, #3d0f1a 100%);
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -0.2rem;
  right: -0.3rem;
  width: 4rem;
  height: 4rem;
  background: radial-gradient(circle, rgba(232,76,61,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.08rem;
}
.page-hero .breadcrumb {
  position: relative;
  z-index: 2;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.page-hero .breadcrumb a:hover { color: #f6a623; }
.page-content {
  max-width: 8rem;
  margin: 0 auto;
  padding: 0.4rem 0.2rem 0.6rem;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0.32rem 0 0.16rem;
  padding-left: 0.12rem;
  border-left: 4px solid #c8102e;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0.16rem;
}
.page-content ul, .page-content ol {
  margin: 0 0 0.16rem 0.2rem;
  padding-left: 0.16rem;
}
.page-content li {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0.08rem;
}
.page-content li::marker { color: #c8102e; }
.page-content a { color: #c8102e; }
.page-content a:hover { text-decoration: underline; }
.page-content .info-box {
  background: #faf5f5;
  border: 1px solid #f0e6e6;
  border-radius: 0.08rem;
  padding: 0.24rem;
  margin: 0.24rem 0;
}
.page-content .info-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #c8102e;
  margin-bottom: 0.08rem;
}
.page-content .info-box p { margin-bottom: 0; }

/* Contact form */
.contact-form {
  max-width: 6rem;
  margin: 0.32rem auto;
  padding: 0.32rem;
  background: #faf5f5;
  border-radius: 0.12rem;
}
.form-group { margin-bottom: 0.2rem; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.06rem;
}
.form-input {
  width: 100%;
  padding: 0.12rem 0.16rem;
  border: 2px solid #eee;
  border-radius: 0.08rem;
  font-size: 16px;
  transition: border-color .2s;
}
.form-input:focus { border-color: #e84c3d; }
textarea.form-input { min-height: 1.2rem; resize: vertical; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  html { font-size: 50px; }
  .header-inner { height: 1rem; }
  .logo { font-size: 18px; }
  .nav {
    display: none;
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.16rem 0;
    border-bottom: 1px solid #f5f0f0;
    width: 100%;
  }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 0.3rem; }
  .hero-stat .num { font-size: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 0.24rem; }
  .steps::before { display: none; }
  .result-comparison { flex-direction: column; }
  .result-compare-item { max-width: none; width: 100%; }
  .compare-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-card { padding: 0.2rem; }
  .tool-textarea { min-height: 2rem; }
  .tool-toolbar { flex-direction: column; align-items: stretch; }
  .tool-toolbar-right { justify-content: flex-end; }
}
