/* 重置与变量 */
:root {
  --primary: #fb7299; /* Bilibili 粉色作为主色调 */
  --primary-hover: #e56689;
  --bg-color: #fafafa;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  scroll-behavior: smooth;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.github-link {
  padding: 4px 12px;
  background: #111;
  color: #fff !important;
  border-radius: 99px;
  font-size: 0.85rem;
}

.github-link:hover {
  background: #333;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background: #fce7f3;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 0 0 2.5rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(251, 114, 153, 0.3);
}

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

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #ccc;
  background: #f9f9f9;
}

.browser-support {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Mockup Browser */
.hero-image {
  position: relative;
}

.mockup-browser {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.browser-header {
  background: #f3f4f6;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.url-bar {
  background: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #9ca3af;
  flex: 1;
  margin-left: 12px;
  border: 1px solid var(--border);
}

.browser-body {
  height: 400px;
  background: #f9fafb;
  position: relative;
  padding: 20px;
}

.mockup-plugin {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.plugin-header {
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.plugin-logo {
  background: white;
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.plugin-tags {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.pink {
  background: var(--primary);
  color: white;
}

.tag.gray {
  background: #f3f4f6;
  color: #4b5563;
}

.tag span {
  opacity: 0.8;
  margin-left: 4px;
  font-size: 0.7rem;
}

/* Features */
.features {
  background: white;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-color);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
}

/* Install Guide */
.install-guide {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.step p {
  color: var(--text-light);
  margin: 0;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-light);
}

.footer p {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .hero, .features-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3rem 1rem;
  }
}