/* ============================================================
   赵海娟 运营作品集 - 共享样式
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

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

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.hero-btns {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

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

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

.btn-outline:hover {
  background: #eff6ff;
}

/* Stats Card */
.stats-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stats-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

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

/* Section Title */
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.card-top {
  height: 4px;
}

.card-body {
  padding: 24px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.card-tag-blue {
  background: #dbeafe;
  color: var(--primary);
}

.card-tag-green {
  background: #dcfce7;
  color: #16a34a;
}

.card-tag-orange {
  background: #ffedd5;
  color: #ea580c;
}

.card-tag-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.card-tag-teal {
  background: #ccfbf1;
  color: #0d9488;
}

.card-tag-red {
  background: #fee2e2;
  color: #dc2626;
}

.card-tag-yellow {
  background: #fef9c3;
  color: #ca8a04;
}

.card-date {
  font-size: 12px;
  color: var(--text-light);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-metrics {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.card-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
}

.card-metric-value {
  font-weight: 700;
  font-size: 16px;
}

.card-metric-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.card-bottom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-bottom-tags span {
  font-size: 11px;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  color: var(--text-light);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.timeline-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.timeline-company {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-item ul {
  list-style: none;
}

.timeline-item li {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
}

.timeline-item li::before {
  content: "▸";
  color: var(--primary);
  margin-right: 8px;
  flex-shrink: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.skills-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.skill-bar-item {
  margin-bottom: 16px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-bar-header span:first-child {
  font-size: 13px;
}

.skill-bar-header span:last-child {
  font-size: 13px;
  color: var(--text-light);
}

.skill-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 1.5s ease-out;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.tool-name {
  font-size: 13px;
  font-weight: 500;
}

.tool-desc {
  font-size: 11px;
  color: var(--text-light);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.contact-card .label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-card .value {
  font-size: 13px;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 13px;
}

/* Detail Page */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.detail-back:hover {
  color: var(--primary);
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header .card-tag {
  margin-bottom: 12px;
  display: inline-block;
}

.detail-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 14px;
}

.detail-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.detail-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.detail-content h3:first-child {
  margin-top: 0;
}

.detail-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}

.detail-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.detail-content li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.detail-content strong {
  font-weight: 600;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }

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

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

  .detail-content {
    padding: 24px;
  }

  .hero-btns {
    flex-direction: column;
  }
}
