@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand: #2fcbe7;
  --color-primary: #5B423F;
  --color-secondary: #8b7667;
  --color-brand-secondary: #eec25e;
  --color-bg: #d4e8f3;
  --color-border: #ffffff;
  --color-card: rgba(255, 255, 255, 0.6);
  --color-article: rgba(255, 255, 255, 0.8);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --header-height: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', 'Averia Serif Libre', serif;
  background: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Background ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(50px);
  pointer-events: none;
}

.bg-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Squircle Card ===== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.squircle {
  border-radius: 20px;
}

/* ===== Brand Button ===== */
.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-brand);
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.4);
}

.brand-btn:hover {
  transform: scale(1.05);
}

.brand-btn:active {
  transform: scale(0.95);
}

/* ===== Text Colors ===== */
.text-brand {
  color: var(--color-brand);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

/* ===== Font ===== */
.font-averia {
  font-family: 'Averia Serif Libre', serif;
}

/* ===== Home Layout ===== */
.home-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.home-grid {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 700px;
}

/* ===== Hi Card ===== */
.hi-card {
  position: absolute;
  width: 330px;
  padding: 24px;
}

.hi-card h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}

.hi-card .hi-name {
  font-family: 'Averia Serif Libre', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.hi-card .hi-desc {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.8;
}

/* ===== Nav Card ===== */
.nav-card {
  position: absolute;
  width: 230px;
  padding: 20px;
}

.nav-card .nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.nav-card .nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 20px -5px #E2D9CE;
}

.nav-card .nav-title {
  font-family: 'Averia Serif Libre', serif;
  font-size: 22px;
  font-weight: 500;
}

.nav-card .nav-subtitle {
  font-size: 11px;
  color: var(--color-brand);
  font-weight: 500;
}

.nav-card .nav-section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 16px 0 8px;
}

.nav-card .nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-card .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--color-secondary);
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

.nav-card .nav-item:hover {
  color: var(--color-primary);
}

.nav-card .nav-item.active {
  color: var(--color-primary);
  font-weight: 500;
}

.nav-card .nav-item svg {
  width: 20px;
  height: 20px;
}

/* ===== Article Card ===== */
.article-card {
  position: absolute;
  width: 330px;
  padding: 20px;
}

.article-card .article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.article-card .article-title {
  font-size: 16px;
  font-weight: 600;
}

.article-card .article-more {
  font-size: 12px;
  color: var(--color-secondary);
  transition: color 0.2s;
}

.article-card .article-more:hover {
  color: var(--color-brand);
}

.article-card .article-list {
  display: flex;
  flex-direction: column;
}

.article-card .article-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  cursor: pointer;
}

.article-card .article-item:last-child {
  border-bottom: none;
}

.article-card .article-item:hover {
  color: var(--color-brand);
}

.article-card .article-item:hover .article-dot {
  background: var(--color-brand);
  height: 16px;
}

.article-card .article-date {
  font-size: 12px;
  color: var(--color-secondary);
  min-width: 36px;
}

.article-card .article-dot-wrap {
  position: relative;
  width: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card .article-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: all 0.2s;
}

.article-card .article-name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Social Buttons Card ===== */
.social-card {
  position: absolute;
  width: 150px;
  padding: 16px;
}

.social-card .social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.social-card .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.social-card .social-btn:hover {
  background: var(--color-brand);
  color: white;
  transform: translateY(-2px);
}

.social-card .social-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== Share Card ===== */
.share-card {
  position: absolute;
  width: 330px;
  padding: 20px;
}

.share-card .share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.share-card .share-title {
  font-size: 16px;
  font-weight: 600;
}

.share-card .share-more {
  font-size: 12px;
  color: var(--color-secondary);
}

.share-card .share-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-card .share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.share-card .share-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.share-card .share-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.share-card .share-info {
  flex: 1;
  min-width: 0;
}

.share-card .share-name {
  font-size: 13px;
  font-weight: 500;
}

.share-card .share-desc {
  font-size: 11px;
  color: var(--color-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-card .share-stars {
  color: var(--color-brand-secondary);
  font-size: 11px;
  letter-spacing: 1px;
}

/* ===== Clock Card ===== */
.clock-card {
  position: absolute;
  width: 150px;
  padding: 16px;
  text-align: center;
}

.clock-card .clock-time {
  font-family: 'Averia Serif Libre', serif;
  font-size: 32px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.clock-card .clock-date {
  font-size: 12px;
  color: var(--color-secondary);
  margin-top: 4px;
}

/* ===== Calendar Card ===== */
.calendar-card {
  position: absolute;
  width: 150px;
  padding: 16px;
}

.calendar-card .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-card .calendar-month {
  font-size: 14px;
  font-weight: 600;
}

.calendar-card .calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-card .calendar-nav button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}

.calendar-card .calendar-nav button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.calendar-card .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-card .calendar-weekday {
  font-size: 10px;
  color: var(--color-secondary);
  padding: 4px 0;
}

.calendar-card .calendar-day {
  font-size: 12px;
  padding: 4px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-card .calendar-day:hover {
  background: rgba(47, 203, 231, 0.1);
}

.calendar-card .calendar-day.today {
  background: var(--color-brand);
  color: white;
}

.calendar-card .calendar-day.other-month {
  color: rgba(139, 118, 103, 0.4);
}

/* ===== Art Card ===== */
.art-card {
  position: absolute;
  width: 150px;
  padding: 8px;
  overflow: hidden;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

/* ===== Hat Card ===== */
.hat-card {
  position: absolute;
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hat-card:hover {
  transform: scale(1.05);
}

.hat-card:active {
  transform: scale(0.95);
}

.hat-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Beian Card ===== */
.beian-card {
  position: absolute;
  width: 200px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-secondary);
}

.beian-card a:hover {
  opacity: 0.8;
}

/* ===== Write Buttons ===== */
.write-buttons {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
}

.write-buttons .config-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.write-buttons .config-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===== Like Button ===== */
.like-position {
  position: absolute;
}

.like-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  font-size: 20px;
}

.like-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.like-btn.liked {
  background: #ff6b6b;
  color: white;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 118, 103, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 118, 103, 0.5);
}

/* ===== Mobile Header ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(212, 232, 243, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-header .logo {
  font-family: 'Averia Serif Libre', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand);
}

.mobile-header .menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(212, 232, 243, 0.95);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 12px 20px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-secondary);
  transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.5);
}

/* ===== Page Layout ===== */
.page-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--header-height) + 24px) 20px 40px;
  max-width: 840px;
  margin: 0 auto;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== Blog List Page ===== */
.blog-list-page .filter-tabs {
  display: inline-flex;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.blog-list-page .filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-secondary);
  transition: all 0.2s;
  font-family: inherit;
}

.blog-list-page .filter-tab:hover {
  color: var(--color-brand);
}

.blog-list-page .filter-tab.active {
  background: var(--color-brand);
  color: white;
}

.blog-group {
  margin-bottom: 20px;
}

.blog-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-group-title .year {
  font-size: 18px;
  font-weight: 600;
}

.blog-group-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D9D9D9;
}

.blog-group-title .count {
  font-size: 13px;
  color: var(--color-secondary);
}

.blog-list {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 20px;
  backdrop-filter: blur(10px);
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  cursor: pointer;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item:hover {
  color: var(--color-brand);
}

.blog-item:hover .item-dot {
  background: var(--color-brand);
  height: 16px;
}

.item-date {
  font-size: 13px;
  color: var(--color-secondary);
  min-width: 44px;
  text-align: right;
}

.item-dot-wrap {
  position: relative;
  width: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: all 0.2s;
}

.item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.item-tag {
  font-size: 12px;
  color: var(--color-secondary);
}

.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--color-secondary);
  transition: all 0.2s;
}

.more-link a:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* ===== Article Content ===== */
.article-content {
  background: var(--color-article);
  border-radius: var(--radius);
  padding: 32px;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.article-content h1 { font-size: 28px; }
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 18px; }

.article-content p {
  margin-bottom: 16px;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.article-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
}

.article-content code {
  background: rgba(47, 203, 231, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-brand);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content blockquote {
  border-left: 4px solid var(--color-brand);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--color-secondary);
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-content th,
.article-content td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
}

.article-content th {
  background: rgba(47, 203, 231, 0.05);
}

/* ===== Post Page ===== */
.post-header {
  margin-bottom: 24px;
}

.post-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.post-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--color-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.post-summary {
  color: var(--color-secondary);
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(47, 203, 231, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-brand);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--color-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-brand);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.post-nav a {
  max-width: 45%;
  padding: 12px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
}

.post-nav a:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* ===== Projects Page ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.project-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.project-year {
  font-size: 12px;
  color: var(--color-secondary);
}

.project-desc {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(47, 203, 231, 0.1);
  color: var(--color-brand);
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.project-links .link-primary {
  background: var(--color-brand);
  color: white;
}

.project-links .link-secondary {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
}

.project-links a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ===== Share Page ===== */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.share-card-page {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  display: flex;
  gap: 14px;
  cursor: pointer;
}

.share-card-page:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-brand);
}

.share-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.share-content {
  flex: 1;
  min-width: 0;
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.share-name {
  font-size: 15px;
  font-weight: 600;
}

.share-stars {
  color: var(--color-brand-secondary);
  font-size: 13px;
  letter-spacing: 1px;
}

.share-desc {
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.share-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(238, 194, 94, 0.15);
  color: var(--color-secondary);
}

/* ===== Pictures Page ===== */
.pictures-masonry {
  column-count: 3;
  column-gap: 16px;
}

.picture-item {
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  cursor: pointer;
}

.picture-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.picture-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}

.picture-item:hover img {
  transform: scale(1.02);
}

.picture-desc {
  padding: 12px;
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.5;
}

.picture-date {
  padding: 0 12px 12px;
  font-size: 12px;
  color: var(--color-secondary);
  opacity: 0.7;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Bloggers Page ===== */
.bloggers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.blogger-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  display: flex;
  gap: 14px;
  cursor: pointer;
}

.blogger-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-brand);
}

.blogger-card.disconnected {
  opacity: 0.7;
}

.blogger-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

.blogger-content {
  flex: 1;
  min-width: 0;
}

.blogger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.blogger-name {
  font-size: 15px;
  font-weight: 600;
}

.blogger-stars {
  color: var(--color-brand-secondary);
  font-size: 13px;
  letter-spacing: 1px;
}

.blogger-desc {
  font-size: 13px;
  color: var(--color-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogger-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin-left: 6px;
}

.blogger-status.active {
  background: #4ade80;
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(47, 203, 231, 0.2);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-secondary);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--color-brand);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .home-container {
    padding: 80px 16px 40px;
  }

  .home-grid {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
  }

  .home-grid .card,
  .home-grid .hat-card,
  .home-grid .write-buttons,
  .home-grid .like-position {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
  }

  .home-grid .hat-card,
  .home-grid .write-buttons {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .page-layout {
    padding-top: calc(var(--header-height) + 16px);
  }

  .pictures-masonry {
    column-count: 2;
  }

  .article-content {
    padding: 20px;
  }

  .post-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .pictures-masonry {
    column-count: 1;
  }

  .projects-grid,
  .share-grid,
  .bloggers-grid {
    grid-template-columns: 1fr;
  }
}
