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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Site Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 2rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1800px;
  margin: 0 auto;
}

.site-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.container {
  width: 95%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #555;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Page Header */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.revision-count {
  font-size: 0.85rem;
  color: #888;
}

/* Revisions Grid */
.revisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.revision-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.revision-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.revision-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  background: #f5f5f5;
}

.revision-card .no-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
  font-size: 0.9rem;
}

.revision-info {
  padding: 1rem;
}

.revision-number {
  font-weight: 600;
  color: #333;
}

/* Revision Page */
.revision-page {
  max-width: 1800px;
}

.revision-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.revision-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.version-badge {
  background: #333;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mockup Section */
.mockup-section {
  margin-bottom: 3rem;
}

.mockup-section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.no-mockup {
  padding: 4rem;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: #999;
}

/* Content Section */
.content-section {
  background: #fff;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content-section h1:first-child,
.content-section h2:first-child,
.content-section h3:first-child {
  margin-top: 0;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.content-section pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.content-section pre code {
  background: none;
  padding: 0;
}

.content-section blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #666;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty code {
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .revision-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-section {
    padding: 1.5rem;
  }
}
