/* === pomodoro.html 专属样式 === */

.pomo-content {
  padding: 120px 40px 80px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.pomo-content .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero */
.pomo-hero {
  text-align: center;
  padding: 40px 0 60px;
}
.pomo-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.pomo-hero .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pomo-hero .pomo-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.pomo-hero .hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
.pomo-section {
  margin: 80px 0;
}
.pomo-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: center;
}
.pomo-section-sub {
  color: var(--text-2);
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
}

/* Version Badge */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin-bottom: 28px;
}
.version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: version-pulse 2s infinite;
}
@keyframes version-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Section Heading */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  margin-top: 8px;
}
.section-heading-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-heading-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  white-space: nowrap;
}

/* Download Links (horizontal cards) */
.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.download-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}
.download-link.windows::before {
  background: radial-gradient(ellipse 80% 80% at 100% 50%, rgba(34, 197, 94, 0.08), transparent);
}
.download-link.macos::before {
  background: radial-gradient(ellipse 80% 80% at 100% 50%, rgba(34, 197, 94, 0.08), transparent);
}
.download-link.github::before {
  background: radial-gradient(ellipse 80% 80% at 100% 50%, rgba(139, 92, 246, 0.08), transparent);
}
.download-link:hover {
  background: var(--surface-hover);
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.download-link:hover::before {
  opacity: 1;
}
.download-link.github:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

/* Download link left side */
.dl-left {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.dl-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.dl-icon--win {
  background: linear-gradient(135deg, #0078d4, #50a4e0);
}
.dl-icon--mac {
  background: linear-gradient(135deg, #555, #999);
}
.dl-text {
  text-align: left;
}
.dl-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin-bottom: 2px;
}
.dl-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}
.download-link:hover .dl-title {
  color: #4ade80;
}
.download-link.github:hover .dl-title {
  color: #a78bfa;
}

/* Download link right side */
.dl-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.dl-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.download-link:hover .dl-right {
  color: #4ade80;
  transform: translateX(4px);
}
.download-link.github:hover .dl-right {
  color: #a78bfa;
}
.download-link:hover .dl-arrow {
  color: #4ade80;
}
.download-link.github:hover .dl-arrow {
  color: #a78bfa;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast-icon { color: #22c55e; font-weight: 700; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* Compare Table */
.pomo-compare-table {
  overflow-x: auto;
}
.pomo-compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pomo-compare-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.pomo-compare-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.5;
}
.pomo-compare-table th:first-child,
.pomo-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.table-summary {
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  margin-top: 16px;
  font-style: italic;
}

/* Privacy Pledge */
.privacy-pledge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pledge-item {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s;
}
.pledge-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.pledge-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pledge-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.pledge-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-list details[open] {
  border-color: var(--accent-1);
}
.faq-list summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-3);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-list details[open] summary::after {
  content: '−';
  color: var(--accent-1);
}
.faq-list .faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-list .faq-answer p {
  margin-bottom: 6px;
}
.faq-list .faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-list .faq-answer code {
  background: var(--surface-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* GitHub Section */
.github-section {
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}
.github-section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}
.github-section p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 28px;
}
.github-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.github-meta-item {
  background: var(--surface-hover);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-2);
}
.github-meta-item strong {
  color: var(--text);
}

/* Recent Updates */
.update-info {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.update-info a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.update-info a:hover {
  color: var(--accent-3);
}

/* WeChat Banner */
.wechat-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
}
.wechat-banner-left h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.wechat-banner-left p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.wechat-banner-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wechat-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface-hover);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
}
.wechat-banner-right {
  text-align: center;
  cursor: pointer;
}
.wechat-banner-right .qr-img-wrap {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 14px;
  padding: 10px;
  margin: 0 auto 10px;
  transition: transform 0.3s;
}
.wechat-banner-right .qr-img-wrap:hover {
  transform: scale(1.05);
}
.wechat-banner-right .qr-img-wrap picture,
.wechat-banner-right .qr-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wechat-banner-right .qr-label {
  font-size: 13px;
  color: var(--text-2);
}

/* Responsive */
@media (max-width: 900px) {
  .pomo-content {
    padding: 100px 20px 60px;
  }
  .download-link {
    padding: 14px 18px;
    border-radius: 14px;
  }
  .dl-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .dl-icon svg {
    width: 18px;
    height: 18px;
  }
  .dl-title {
    font-size: 0.95rem;
  }
  .dl-right {
    font-size: 0.72rem;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .privacy-pledge {
    grid-template-columns: 1fr;
  }
  .wechat-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wechat-banner-tags {
    justify-content: center;
  }
  .github-meta {
    flex-direction: column;
    align-items: center;
  }
}
