.llx-home-page {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.11), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fb 45%, var(--white) 100%);
}

.llx-home-hero {
  padding: 42px 0 30px;
}

.llx-home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 34px;
  align-items: center;
}

.llx-home-hero-title {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: 0;
  font-weight: 900;
}

.llx-home-hero-title span {
  color: var(--primary);
}

.llx-home-hero-desc {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-sub);
}

.llx-home-compose-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.llx-home-compose-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.llx-home-compose-title h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text-main);
}

.llx-home-compose-title span {
  font-size: 13px;
  color: var(--green);
  background: #ecfdf5;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.llx-home-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.llx-home-form-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.llx-home-form-item::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 45px;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid rgba(96, 165, 250, 0.39);
  border-bottom: 1.6px solid rgba(96, 165, 250, 0.39);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.18s ease;
}

.llx-home-form-item:hover::after,
.llx-home-form-item:focus-within::after {
  border-color: #3b82f6;
}

.llx-home-form-item label {
  font-size: 13px;
  color: #64748b;
  font-weight: 650;
}

.llx-home-form-item select {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background-color: var(--white);
  background-image: linear-gradient(180deg, var(--white) 0%, #f8fbff 100%);
  color: var(--text-sub);
  padding: 0 38px 0 13px;
  outline: none;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.llx-home-form-item select::-ms-expand {
  display: none;
}

.llx-home-form-item select:hover {
  border-color: #93c5fd;
  background-color: var(--white);
}

.llx-home-form-item select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.llx-home-compose-submit {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.llx-home-compose-tips {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.llx-home-compose-tips span {
  font-size: 12px;
  color: var(--text-sub);
  background: #f3f4f6;
  border-radius: 999px;
  padding: 5px 9px;
}

.llx-home-section {
  padding: 34px 0;
}

.llx-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.llx-home-section-title {
  margin: 0;
  color: var(--text-main);
  font-size: 28px;
  line-height: 1.3;
}

.llx-home-section-desc {
  margin: 8px 0 0;
  color: var(--text-light);
  font-size: 15px;
}

.llx-home-more-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.llx-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.llx-home-feature-card {
  position: relative;
  min-height: 170px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.llx-home-feature-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border-color: var(--primary-line);
}

.llx-home-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 16px;
}

.llx-home-feature-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
}

.llx-home-feature-card p {
  margin: 10px 0 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.llx-home-topic-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.llx-home-topic-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.llx-home-topic-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.llx-home-topic-title h3 {
  margin: 0;
  font-size: 19px;
  color: var(--text-main);
}

.llx-home-topic-title span {
  font-size: 13px;
  color: var(--text-light);
}

.llx-home-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.llx-home-topic-list a {
  min-width: 94px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #374151;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.llx-home-topic-list a:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-line);
}

.llx-home-paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.llx-home-paper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.llx-home-paper-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-light);
  text-align: center;
  font-size: 14px;
}

.llx-home-paper-card:hover {
  border-color: var(--primary-line);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.llx-home-paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.llx-home-paper-tags span {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 8px;
  border-radius: 999px;
}

.llx-home-paper-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-main);
  font-weight: 850;
}

.llx-home-paper-meta {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

.llx-home-paper-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed var(--border);
}

.llx-home-paper-update {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.llx-home-paper-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llx-home-paper-btn:hover {
  background: var(--primary-dark);
}

.llx-home-focus-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.llx-home-focus-card {
  padding: 22px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.llx-home-focus-card h3,
.llx-home-advantage-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
}

.llx-home-focus-card p,
.llx-home-advantage-card p {
  margin: 10px 0 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
}

.llx-home-advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.llx-home-advantage-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.llx-compose-light-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow);
}

.llx-compose-light-panel::before,
.llx-compose-light-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.llx-compose-light-panel::before {
  left: -90px;
  top: -100px;
  width: 260px;
  height: 260px;
  background: rgba(37, 99, 235, 0.07);
}

.llx-compose-light-panel::after {
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  background: rgba(22, 163, 74, 0.08);
}

.llx-compose-light-visual {
  position: relative;
  z-index: 1;
  display: block;
}

.llx-compose-light-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.llx-compose-light-svg text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.llx-flow-svg-title { fill: #0f172a; font-weight: 800; }
.llx-flow-svg-subtitle { fill: #64748b; font-weight: 400; }
.llx-flow-svg-step-card { fill: #ffffff; stroke: #dbeafe; stroke-width: 1.2; filter: url(#flowLightShadow); }
.llx-flow-svg-step-num { fill: #2563eb; }
.llx-flow-svg-step-num-green { fill: #16a34a; }
.llx-flow-svg-step-num-orange { fill: #f97316; }
.llx-flow-svg-role-tag-user { fill: #ecfdf5; stroke: #bbf7d0; stroke-width: 1; }
.llx-flow-svg-role-tag-system { fill: #eff6ff; stroke: #dbeafe; stroke-width: 1; }
.llx-flow-svg-role-tag-optional { fill: #fff7ed; stroke: #fed7aa; stroke-width: 1; }
.llx-flow-svg-role-text-user { fill: #15803d; font-weight: 500; }
.llx-flow-svg-role-text-system { fill: #1d4ed8; font-weight: 500; }
.llx-flow-svg-role-text-optional { fill: #c2410c; font-weight: 500; }
.llx-flow-svg-step-title { fill: #111827; font-weight: 700; }
.llx-flow-svg-step-desc { fill: #64748b; font-weight: 400; }

.llx-flow-svg-line-base,
.llx-flow-svg-line-active {
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.llx-flow-svg-line-base {
  stroke: #dbeafe;
}

.llx-flow-svg-line-active {
  stroke: url(#flowLightGrad);
  stroke-dasharray: 960;
  stroke-dashoffset: 960;
  animation: llxFlowLineDraw 2.8s ease-out 0.35s 1 forwards;
}

.llx-flow-svg-card-animate {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: llxFlowCardIn 0.46s ease-out 1 forwards;
}

.llx-flow-svg-card-1 { animation-delay: 0.1s; }
.llx-flow-svg-card-2 { animation-delay: 0.35s; }
.llx-flow-svg-card-3 { animation-delay: 0.6s; }
.llx-flow-svg-card-4 { animation-delay: 0.85s; }
.llx-flow-svg-card-5 { animation-delay: 1.1s; }
.llx-flow-svg-card-6 { animation-delay: 1.35s; }

.llx-flow-svg-preview {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: llxFlowPreviewIn 0.7s ease-out 1.8s 1 forwards;
}

.llx-flow-svg-paper-row {
  opacity: 0;
  animation: llxFlowRowIn 0.42s ease-out 1 forwards;
}

.llx-flow-svg-row-1 { animation-delay: 2.15s; }
.llx-flow-svg-row-2 { animation-delay: 2.3s; }
.llx-flow-svg-row-3 { animation-delay: 2.45s; }

.llx-flow-svg-done {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: llxFlowDoneIn 0.48s cubic-bezier(.2,.85,.28,1.25) 2.9s 1 forwards;
}

.llx-compose-light-mobile {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
}

.llx-compose-light-mobile-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px 44px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.llx-compose-light-mobile-num {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
}

.llx-compose-light-mobile-step.is-user .llx-compose-light-mobile-num {
  background: var(--green);
}

.llx-compose-light-mobile-step.is-optional .llx-compose-light-mobile-num {
  background: var(--orange);
}

.llx-compose-light-mobile-content {
  min-width: 0;
  flex: 1;
}

.llx-compose-light-mobile-head {
  display: block;
  margin-bottom: 2px;
}

.llx-compose-light-mobile-tag {
  position: absolute;
  right: 14px;
  bottom: 12px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
}

.llx-compose-light-mobile-tag.is-user {
  color: #15803d;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.llx-compose-light-mobile-tag.is-system {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #dbeafe;
}

.llx-compose-light-mobile-tag.is-optional {
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.llx-compose-light-mobile-step strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
}

.llx-compose-light-mobile-step span {
  display: block;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes llxFlowCardIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes llxFlowLineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes llxFlowPreviewIn {
  0% { opacity: 0; transform: translateX(16px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes llxFlowRowIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes llxFlowDoneIn {
  0% { opacity: 0; transform: scale(0.74); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .llx-compose-light-svg * {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1060px) {
  .llx-home-hero-inner {
    grid-template-columns: 1fr;
  }

  .llx-home-compose-card {
    max-width: 560px;
  }

  .llx-home-feature-grid,
  .llx-home-advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .llx-home-paper-grid,
  .llx-home-focus-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .llx-compose-light-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .llx-compose-light-visual {
    display: none;
  }

  .llx-compose-light-mobile {
    display: grid;
  }
}

@media (max-width: 720px) {
  .llx-home-hero {
    padding-top: 34px;
  }

  .llx-home-hero-title {
    font-size: 32px;
  }

  .llx-home-hero-desc {
    font-size: 15px;
  }

  .llx-home-compose-grid,
  .llx-home-feature-grid,
  .llx-home-paper-grid,
  .llx-home-topic-wrap,
  .llx-home-focus-box,
  .llx-home-advantage-grid {
    grid-template-columns: 1fr;
  }

  .llx-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
