/*
 * Restored DBAnotes (Unity Blue) 3-Column Theme for guduo.net
 * Faithful to original Movable Type layout-wtt + modern responsive mobile support
 */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font: normal 14px Tahoma, verdana, arial, helvetica, sans-serif;
  color: #333333;
  background-color: #eeeeee;
  line-height: 1.5;
}

a {
  color: #0082ff;
  font-weight: normal;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0;
  padding-top: 4px;
  padding-bottom: 6px;
}

blockquote {
  margin: 15px 30px 5px 10px;
  padding-left: 14px;
  border-left: 3px solid #dddddd;
}

pre {
  font-family: "Courier New", Courier, mono, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  word-spacing: normal;
  background-color: #efefef;
  line-height: 150%;
  margin-bottom: 5pt;
  margin-top: 5pt;
  padding: 5pt;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

code {
  font-family: "Courier New", Courier, mono, monospace;
  font-size: 12px;
  background-color: #efefef;
  padding: 1px 4px;
}

pre code {
  background: transparent;
  padding: 0;
}

hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #8faebe;
  width: 100%;
}

/* Container -------------------------------------------------------------- */

#container {
  width: 100%;
}

#container-inner {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  border-left: 1px solid #ffffff;
}

/* Header ----------------------------------------------------------------- */

#header {
  background: #ffffff;
  padding-top: 18px;
  border-bottom: 1px solid #bbd0f9;
}

#header-inner {
  position: relative;
  padding: 0 15px 10px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
}

#header-content {
  margin-top: 2px;
}

#header-name {
  margin: 0;
  font-family: Garamond, verdana, Tahoma, helvetica, arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  padding-top: 3px;
  padding-bottom: 6px;
  color: #000000;
}

#header-name a {
  font-family: Garamond, verdana, Tahoma, helvetica, arial, sans-serif;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
}

#header-name a:hover {
  text-decoration: underline;
}

#header-description {
  margin: 0;
  font-family: Tahoma, verdana, arial, helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #000000;
}

/* Classic #nav tabs (Fenng Unity Blue style) */
#nav {
  font-family: Tahoma, "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
}

#nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#nav li a {
  display: block;
  padding: 4px 9px;
  background: #bbd0f9;
  color: #333333;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.25;
}

#nav li a:hover,
#nav li a[aria-current="page"] {
  background: #eff2ff;
  color: #000000;
  text-decoration: none;
}

/* 3-Column Content Layout (layout-wtt: 620px + 189px + 182px) ------------ */

#content {
  background-color: #ffffff;
  margin-top: 15px;
}

#content-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
}

#alpha {
  width: 620px;
  min-width: 0;
  flex: 1 1 620px;
  background-color: #ffffff;
  line-height: 1.8;
}

#alpha-inner {
  padding: 0 20px 25px 15px;
}

#gamma {
  width: 189px;
  flex: 0 0 189px;
  background-color: #efefef;
}

#beta {
  width: 182px;
  flex: 0 0 182px;
  background-color: #eff2ff;
}

#beta-inner,
#gamma-inner {
  padding: 0 0 25px 0;
}

/* Articles & Entries ----------------------------------------------------- */

.entry-asset {
  margin-bottom: 24px;
}

.asset-header {
  margin-bottom: 8px;
}

.asset-name {
  margin: 0;
  font-family: Tahoma, verdana, arial, helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  padding-bottom: 3px;
  color: #0082ff;
}

.asset-name a {
  color: #0082ff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.asset-name a:hover {
  text-decoration: underline;
}

.asset-meta {
  margin-top: 4px;
  padding-top: 2px;
  font-weight: normal;
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
  display: block;
  border-top: 1px double #d8e8f5;
  color: #333333;
}

.asset-meta .separator {
  margin: 0 4px;
  color: #999999;
}

.asset-content {
  margin: 5px 0;
}

.asset-body {
  font-family: Tahoma, verdana, arial, helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #333333;
  overflow-wrap: break-word;
  word-break: break-word;
}

.asset-body img {
  max-width: 100%;
  height: auto;
}

.asset-body table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
}

.asset-body th,
.asset-body td {
  border: 1px solid #d8e8f5;
  padding: 4px 6px;
}

.asset-more-link {
  margin-top: 6px;
  font-size: 12px;
  font-weight: normal;
}

.asset-tags {
  margin-top: 12px;
  padding-top: 6px;
  border-top: 1px double #d8e8f5;
  font-size: 12px;
  color: #666666;
}

.asset-tags a {
  margin-right: 6px;
}

.content-nav {
  margin: 16px 0 10px;
  padding-top: 8px;
  border-top: 1px double #d8e8f5;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.archive-header {
  margin: 0 0 14px 0;
  padding: 5px 0;
  font-size: 15px;
  font-weight: bold;
  color: #0082ff;
  border-bottom: 1px double #d8e8f5;
}

.archive-sub {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: #666666;
}

/* Sidebar Widgets -------------------------------------------------------- */

.widget {
  margin-bottom: 12px;
}

.widget-header {
  margin: 0;
  padding: 8px 8px 6px 6px;
  font-family: Tahoma, arial, helvetica, "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  font-weight: bold;
  background-color: #bbd0f9;
  color: #6f6f6f;
  border-left: 1px solid #ffffff;
  line-height: 1.25;
}

.widget-header a {
  color: #0082ff;
  font-weight: bold;
  text-decoration: none;
}

.widget-header a:hover {
  text-decoration: underline;
}

.widget-content {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 8px 6px 10px;
  color: #333333;
}

.widget-list {
  margin: 0;
  padding-left: 15px;
  list-style-type: disc;
}

.widget-list .widget-list {
  padding-left: 14px;
  list-style-type: circle;
  margin-top: 2px;
}

.widget-list li {
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.widget-search input[type="search"],
.widget-search input[type="text"] {
  width: 100%;
  font-family: Tahoma, verdana, arial, sans-serif;
  font-size: 12px;
  padding: 3px 5px;
  border: 1px solid #999999;
  background: #ffffff;
  margin-bottom: 5px;
}

.widget-search button,
.widget-search input[type="submit"] {
  font-family: Tahoma, verdana, arial, sans-serif;
  font-size: 12px;
  padding: 2px 10px;
  cursor: pointer;
}

.widget-tag-cloud .widget-list {
  list-style-type: disc;
}

/* Archives & Directory Pages --------------------------------------------- */

.archive-year {
  margin-top: 16px;
}

.archive-year h2 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: bold;
  color: #0082ff;
  border-bottom: 1px double #d8e8f5;
  padding-bottom: 3px;
}

.archive-date-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.archive-date-list li {
  margin-bottom: 3px;
}

.archive-date {
  color: #666666;
  font-size: 12px;
  margin-right: 6px;
  font-family: "Courier New", Courier, monospace;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 14px;
  font-size: 13px;
}

.pagination {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px double #d8e8f5;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pagination .active {
  color: #666666;
}

/* Footer ----------------------------------------------------------------- */

#footer {
  background-color: #05182b;
  color: #ffffff;
  font-size: 12px;
}

#footer-inner {
  padding: 12px 20px;
}

#footer-content {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
}

#footer-content a {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Mobile Support (stacks cleanly below 900px, zero overflow) -- */

@media (max-width: 900px) {
  #container-inner {
    width: 100%;
    border-left: 0;
  }

  #content-inner {
    flex-direction: column;
    gap: 0;
  }

  #alpha,
  #gamma,
  #beta {
    width: 100%;
    flex: none;
  }

  #alpha-inner {
    padding: 0 14px 20px 14px;
  }

  #beta-inner,
  #gamma-inner {
    padding: 0 0 12px 0;
  }
}
