:root {
  --bg-color: #f0f0f0;
  --text-color: #000000;
  --accent-color: #000000;
  --border-width: 1px;
  --font-mono: 'Courier New', Courier, monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  line-height: 1.5;
  font-size: 14px;
}

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

/* Global Image Reset */
img {
  max-width: 100%;
  max-height: 500px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  filter: grayscale(100%);
}
img:hover { filter: grayscale(0%); transition: 0.3s; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  min-height: 100vh;
  background: #fff;
}

/* Header */
.header {
  padding: 20px;
  border-bottom: 1px solid #000;
  text-align: center;
}
.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.brand-logo {
  height: 50px;
  width: auto;
  max-height: 50px;
  filter: none; /* Logo keep color */
  margin: 0;
}
.brand-text {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hero */
.hero {
  padding: 60px 20px;
  border-bottom: 1px solid #000;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero p {
  margin-bottom: 30px;
  text-align: justify;
}

/* Hero Actions & Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  padding: 12px 30px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  gap: 12px;
  border-radius: 8px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
  min-width: 160px;
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

/* Brand Colors */
.btn-outline.baidu {
  border-color: #06a7ff;
  color: #06a7ff;
  background: #fff;
}
.btn-outline.baidu:hover {
  background: #06a7ff;
  color: #fff;
  box-shadow: 6px 6px 0px rgba(6, 167, 255, 0.3);
}

.btn-outline.quark {
  border-color: #00bf76;
  color: #00bf76;
  background: #fff;
}
.btn-outline.quark:hover {
  background: #00bf76;
  color: #fff;
  box-shadow: 6px 6px 0px rgba(0, 191, 118, 0.3);
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin: 0;
  filter: none !important; /* Force original colors */
  display: inline-block;
}

/* Features */
.section-header {
  padding: 20px 20px;
  border-bottom: 1px solid #000;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1px;
}
.feature-item {
  padding: 30px 20px;
  border-bottom: 1px solid #000;
}
.feature-title {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #000;
}
.gallery-img {
  width: 100%;
  height: auto;
  border-right: 1px solid #000;
  padding: 10px;
}
.gallery-img:last-child { border-right: none; }

/* Posts */
.post-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid #000;
}
.post-row {
  border-bottom: 1px solid #000;
}
.post-row:last-child { border-bottom: none; }
.post-cell {
  padding: 15px 0;
}
.post-cell:first-child { padding-left: 20px; }
.post-cell:last-child { padding-right: 20px; }

.post-date {
  width: 120px;
  color: #666;
}
.post-link:hover { text-decoration: underline; }

/* Friends */
.friend-list {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 20px;
  border-bottom: 1px solid #000;
}
.friend-item {
  margin-right: 20px;
  font-size: 12px;
  text-transform: uppercase;
}
.friend-item:hover { text-decoration: line-through; }

/* Comments */
.comment-item {
  padding: 20px 20px;
  border-bottom: 1px dashed #000;
}
.comment-item:last-child { border-bottom: none; }
.comment-meta {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  border-top: 1px solid #000;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img { border-right: none; border-bottom: 1px solid #000; }
  .gallery-img:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; }
  .btn-outline { width: 100%; }
}
