
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e91e63;
  --primary-light: #f48fb1;
  --primary-dark: #c2185b;
  --primary-bg: #fce4ec;
  --secondary-color: #9c27b0;
  --accent-blue: #4fc3f7;
  --accent-green: #66bb6a;
  --accent-orange: #ffa726;
  --text-color: #1a1a2e;
  --text-light: #555;
  --text-lighter: #999;
  --bg-color: #f7f8fc;
  --white: #ffffff;
  --border-color: #e8e8f0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --shadow: 0 2px 12px rgba(233, 30, 99, 0.08);
  --shadow-hover: 0 8px 30px rgba(233, 30, 99, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --gradient-primary: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
  --gradient-hero: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
  --gradient-warm: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
  --gradient-cool: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav a:hover {
  color: var(--primary-color);
}

.nav-auth {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.nav-auth .btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
}

.nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: #f0f0f5;
}


.ad-top {
  width: 100%;
  min-height: 90px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ad-placeholder {
  color: var(--text-lighter);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
}

.ad-middle {
  width: 100%;
  min-height: 250px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  border-radius: var(--radius-md);
}

.ad-bottom {
  width: 100%;
  min-height: 90px;
  background: linear-gradient(180deg, #f5f5f5 0%, #fafafa 100%);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}


.main {
  padding: 30px 0;
  min-height: calc(100vh - 400px);
}


.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #7b1fa2;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn .spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}


.slider-container {
  margin: 20px 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
  transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 8px;
}


.result-box {
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.result-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.result-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.score-display {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.score-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  transition: transform var(--transition-base);
}

.score-item:hover {
  transform: scale(1.05);
}

.score-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:active {
  transform: translateY(-3px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.15);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
  transition: color var(--transition-fast);
}

.feature-card:hover .feature-title {
  color: var(--primary-color);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}


.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border-left: 4px solid transparent;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
  border-left-color: var(--primary-color);
}

.article-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.article-title a {
  color: inherit;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-meta {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
}

.article-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}


.article-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.article-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 16px;
  color: var(--text-color);
  padding-left: 16px;
  border-left: 4px solid var(--primary-color);
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.tool-entry {
  background: var(--gradient-warm);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-entry::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.tool-entry p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}


.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(180deg, #fce4ec 0%, var(--white) 30%);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4px 40px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.pricing-price small {
  font-size: 16px;
  color: var(--text-lighter);
  -webkit-text-fill-color: var(--text-lighter);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--success-color);
  font-weight: bold;
  margin-right: 8px;
}


.footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 30px;
  margin-top: 60px;
}

.footer .container {
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: var(--text-lighter);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-secondary {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-secondary a {
  font-size: 12px;
  color: var(--text-lighter);
}

.copyright {
  font-size: 13px;
  color: var(--text-lighter);
}


.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 30, 50, 0.92);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.toast.success::before {
  background-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.toast.error::before {
  background-color: var(--error-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.toast.warning::before {
  background-color: var(--warning-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}


.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }


.page-header {
  text-align: center;
  padding: 48px 24px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.page-cta {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}


.cta-section {
  text-align: center;
  padding: 48px 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}


.steps-section {
  margin-top: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-base);
}

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

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary-light);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.step-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}


.about-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.about-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}


.eval-item {
  margin: 25px 0;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.04);
  transition: box-shadow var(--transition-fast);
}

.eval-item:hover {
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.1);
}

.eval-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  display: block;
}

.eval-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: block;
}

.card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.card-option {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 80px;
  text-align: center;
  background: var(--white);
  position: relative;
  user-select: none;
}

.card-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.card-option:active {
  transform: scale(0.97);
}

.card-option.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
  transform: scale(1.02);
}

.eval-tip {
  font-size: 12px;
  color: var(--text-light);
  min-height: 16px;
  line-height: 1.6;
  padding: 8px 12px;
  background: #f8f8fc;
  border-radius: 6px;
  margin-top: 8px;
  border-left: 3px solid var(--primary-light);
}


.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}


.guide-section {
  text-align: center;
  padding: 40px 20px;
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 500px;
  margin: 0 auto;
}

.guide-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.guide-card p {
  font-size: 15px;
  color: var(--text-light);
}

.guide-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.guide-buttons .btn {
  padding: 14px 32px;
  font-size: 16px;
}


.profile-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  transition: all var(--transition-base);
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  transition: background var(--transition-fast);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.profile-header:hover {
  background: #f8f8fc;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.profile-time {
  font-size: 13px;
  color: var(--text-lighter);
}

.profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.profile-summary span {
  background: #f0f0f8;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  background: var(--white);
  border-radius: var(--radius-md);
}

.empty-tip p {
  margin-bottom: 16px;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.modal input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.modal input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.modal .tip {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f8f8fc;
  border-radius: 6px;
  border-left: 3px solid var(--primary-light);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}


.privacy-notice {
  margin-top: 40px;
  padding: 24px;
  background: #f8f8fc;
  border-radius: var(--radius-md);
  text-align: center;
}

.privacy-notice p {
  font-size: 14px;
  color: var(--text-light);
  margin: 8px 0;
}

.privacy-notice strong {
  color: var(--text-color);
  font-size: 15px;
}


.match-score {
  color: var(--primary-color);
  font-weight: 600;
}


.profile-list-section {
  margin-bottom: 30px;
}

.profile-list-section .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}


.expand-icon {
  font-size: 14px;
  color: var(--text-lighter);
  transition: transform var(--transition-base);
}

.expand-icon.expanded {
  color: var(--primary-color);
  transform: rotate(180deg);
}


.profile-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.3s ease-out;
}


.profile-scores {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.score-box {
  flex: 1;
  text-align: center;
  padding: 14px;
  background: #f0f0f8;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.score-box:hover {
  background: var(--primary-bg);
}

.score-box .score-value {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.score-box .score-label {
  font-size: 13px;
  color: var(--text-light);
}


.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 10px;
  background: #fafafe;
  border-radius: var(--radius-sm);
}

.detail-label {
  font-size: 13px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}


.tool-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tool-container .profile-list-section {
  flex: 0 0 auto;
  min-height: 200px;
}

.tool-container .add-new-section {
  flex: 0 0 auto;
  min-height: 100px;
}


.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.empty-state svg {
  animation: float 3s ease-in-out infinite;
}


.evaluation-form {
  margin-top: 30px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: slideDown 0.3s ease-out;
}


.result-section {
  margin-top: 30px;
  padding: 28px;
  background: var(--gradient-cool);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.4s ease-out;
}


.match-list-section {
  flex: 0 0 auto;
}


.match-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.match-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}


.match-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
  transition: background var(--transition-fast);
}

.match-item-header:not(.calculating):hover {
  background: #f8f8fc;
}

.match-item-header.calculating {
  opacity: 0.6;
  pointer-events: none;
}

.match-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}


.status-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.pending {
  background: #fff3e0;
  color: #e65100;
}

.status-badge.analyzed {
  background: #e8f5e9;
  color: #2e7d32;
}


.expand-icon.rotated {
  transform: rotate(180deg);
}


.match-result-detail {
  padding: 24px;
  background: var(--gradient-cool);
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.3s ease-out;
}


.no-data-notice,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.no-data-notice h3,
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.no-data-notice p,
.empty-state p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}


.calculating {
  opacity: 0.6;
  pointer-events: none;
}


.no-profile-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.no-profile-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.no-profile-state p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}


.profile-result-section {
  margin-bottom: 30px;
}


.dimension-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.dimension-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dimension-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}


.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

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

.comparison-table th {
  background: #f0f0f8;
  font-weight: 600;
  color: var(--text-color);
}

.comparison-table tr:hover {
  background: #fafafe;
}


.locked-content {
  position: relative;
  overflow: hidden;
}

.locked-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--white) 100%);
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
}


/* 分享卡片 */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.share-modal-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.share-modal-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.share-modal-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 14px;
}

.share-modal-content .share-hint {
  margin-bottom: 12px;
  font-size: 13px;
  color: #999;
}

.share-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin: 0 auto 20px;
  display: block;
  -webkit-touch-callout: default;
  pointer-events: auto;
}

.share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 婚恋百科分类筛选 */
.category-btn {
  cursor: pointer;
}

.category-btn.active {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background: var(--primary-bg) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .nav.open {
    max-height: 800px;
    padding: 8px 0;
  }

  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-auth {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
  }

  .nav-auth .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
  }

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

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

  .pricing-card.featured {
    transform: none;
  }

  .score-display {
    flex-direction: column;
  }

  .score-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
  }

  .match-item-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .match-item-info {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .match-item-header .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
  }

  .expand-icon {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .main {
    padding: 20px 0;
  }

  .card {
    padding: 20px;
  }

  .page-header {
    padding: 32px 20px;
  }

  .page-title {
    font-size: 26px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 26px;
  }

  .steps-grid {
    gap: 16px;
  }

  .step-card {
    padding: 20px 16px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tool-container {
    gap: 20px;
  }

  .tool-container .profile-list-section {
    min-height: 150px;
  }

  .tool-container .add-new-section {
    min-height: 80px;
  }

  .card-option {
    min-width: 70px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .eval-item {
    margin: 20px 0;
    padding: 14px;
  }

  .cta-section {
    padding: 32px 20px;
  }

  .guide-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .guide-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }

  .footer-secondary {
    flex-wrap: wrap;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .share-modal-content {
    padding: 24px 16px;
    max-width: 100%;
  }

  .share-image {
    max-width: 100%;
  }

  .share-actions {
    flex-direction: column;
  }

  .share-actions .btn {
    width: 100%;
  }
}
