/* ===== 朝晖家旗舰区 ===== */
.flagship {
  position: relative;
  z-index: 2;
  padding: 8rem 0 7rem;
  background: var(--bg-alt);
  transition: background-color 0.4s ease;
}

.flagship__inscription {
  position: absolute;
  left: 1.5rem;
  top: 9rem;
}

/* 视口不够宽时题跋会与内容重叠，隐藏 */
@media (max-width: 1360px) {
  .flagship__inscription,
  .timeline__inscription {
    display: none;
  }
}

.flagship__label {
  margin-bottom: 2.5rem;
}

.flagship__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 532px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}

/* 左侧文案 */
.flagship__title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.flagship__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-1);
}

.flagship__badge {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-flame));
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(255, 154, 61, 0.4);
}

.flagship__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.2rem;
  transition: color 0.4s ease;
}

.flagship__desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.flagship__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.flagship__feature {
  padding: 1.4rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.flagship__feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.flagship__feature svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.flagship__feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}

.flagship__feature p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-2);
}

.flagship__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 右侧样机 */
.flagship__visual {
  position: relative;
  height: 560px;
}

.flagship__visual-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--primary-light), var(--primary));
  opacity: 0.92;
}

.flagship__visual-glow {
  position: absolute;
  left: 18%;
  top: 6%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--glow-sun) 0%,
    rgba(255, 184, 77, 0) 70%
  );
}

.phone {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.phone--back {
  right: 4%;
  top: 8%;
  width: 210px;
  height: 440px;
  border-radius: 32px;
  padding: 2.4rem 1rem 1rem;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.phone__skeleton-bar {
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  align-self: center;
  margin-bottom: 0.6rem;
}

.phone__skeleton-block {
  height: 60px;
  border-radius: 12px;
  background: var(--bg-alt);
}

.phone__skeleton-block--lg {
  height: 90px;
}

.phone--front {
  left: 2%;
  top: 0;
  width: 240px;
  height: 510px;
  border-radius: 36px;
  padding: 1rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
}

.phone__time {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-1);
}

.phone__status-icons {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.phone__status-icons i {
  display: block;
  width: 3px;
  background: var(--text-1);
  border-radius: 1px;
}

.phone__status-icons i:nth-child(1) {
  height: 4px;
}

.phone__status-icons i:nth-child(2) {
  height: 7px;
}

.phone__status-icons i:nth-child(3) {
  height: 10px;
}

.phone__app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.2rem 0;
}

.phone__app-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
}

.phone__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-flame));
}

.phone__section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
}

.phone__section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
}

.phone__progress-pill {
  padding: 0.15rem 0.55rem;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(107, 138, 255, 0.12);
  border-radius: 100px;
}

.phone__task {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 14px;
  transition: background-color 0.4s ease;
}

.phone__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.phone__task.is-done .phone__check {
  background: var(--green);
  border-color: var(--green);
}

.phone__check svg {
  width: 10px;
  height: 10px;
}

.phone__task:not(.is-done) .phone__check svg {
  display: none;
}

.phone__task-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone__task-text strong {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-1);
}

.phone__task-text em {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--text-3);
}

.phone__task.is-done .phone__task-text em {
  color: var(--green);
}

.phone__week-card {
  margin-top: auto;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d51f8, #093fcc);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.phone__week-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
}

.phone__week-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.phone__week-bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.phone__tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.55rem 0.4rem 0.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
}

.phone__tabbar svg {
  width: 18px;
  height: 18px;
}

.phone__tabbar svg.is-active {
  color: var(--primary);
}

/* 下段四大模块 */
.flagship__modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flagship__module {
  padding: 1.8rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.flagship__module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.flagship__module svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.flagship__module h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.flagship__module p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
}

@media (max-width: 1024px) {
  .flagship__main {
    grid-template-columns: 1fr;
  }

  .flagship__visual {
    height: 520px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

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

@media (max-width: 768px) {
  .flagship {
    padding: 5rem 0 4rem;
  }

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

  .flagship__modules {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flagship__visual {
    height: 500px;
  }

  .phone--front {
    left: 0;
  }

  .phone--back {
    right: 0;
  }
}

@media (max-width: 560px) {
  /* 窄屏只保留主机样机并居中，避免副机被裁切 */
  .phone--back {
    display: none;
  }

  .phone--front {
    left: 50%;
    margin-left: -120px;
  }
}
