/* ------------------------------------
 * Typecho Default Theme - 硕创科技定制版
 * 配色对标CCN中商：深蓝+亮黄+浅灰蓝
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
body {
  background-color: #f5f7fa;
  color: #333;
  font-family: "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
  font-size: 87.5%;
}

a {
  color: #1565C0;
  text-decoration: none;
}
a:hover, a:active {
  color: #e6a817;
}
pre, code { 
  background: #eef2f7;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #1565C0; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  padding: 3px;
  color: #333;
}

blockquote {
  margin: 1em 0;
  padding: 10px 14px 10px 18px;
  border-left: 4px solid #e6a817;
  color: #555;
  background: #faf8f0;
  border-radius: 0 4px 4px 0;
}

table {
  border: 1px solid #dde3ed;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #dde3ed;
}
table th {
  background: #eef2f7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #c8d4e5;
  width: 100%;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid #dde3ed;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: #e6a817;
}

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

#header {
  padding-top: 35px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e6a817;
  background: #fff;
  position: relative;
  overflow: hidden;
}
#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 85% 15%, rgba(21,101,192,0.06) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(230,168,23,0.04) 0%, transparent 40%);
  pointer-events: none;
}
#header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
}

#logo {
  color: #0d1b4c;
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
#logo img {
    max-height: 64px;
}

.description {
  margin: .5em 0 0;
  color: #8899b0;
  font-style: normal;
  font-size: 0.95em;
  position: relative;
  z-index: 1;
}

/* Navigation menu */
#nav-menu {
  margin: 25px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
#nav-menu a {
  display: block;
  margin-right: -1px;
  padding: 0 20px;
  border: 1px solid #c8d4e5;
  border-bottom: none;
  height: 32px;
  line-height: 32px;
  color: #0d1b4c;
  float: left;
  transition: all 0.2s ease;
}
#nav-menu a:hover,
#nav-menu .current {
  background: linear-gradient(135deg, #0d1b4c, #1565C0);
  color: #fff;
  border-color: #0d1b4c;
}

/* Search */
#search {
  position: relative;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
#search .text {
  background: #f5f7fa;
  border: 1px solid #c8d4e5;
  color: #0d1b4c;
}
#search .text:focus {
  border-color: #e6a817;
  background: #fff;
}
#search .text::placeholder {
  color: #8899b0;
}
#search input {
  padding-right: 30px;
}
#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(img/icon-search.png) no-repeat center center;
  filter: brightness(0) invert(0.2) sepia(1) hue-rotate(200deg);
  direction: ltr;
  text-indent: -9999em;
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}


/* ------------------
 * Main
 * --------------- */

.post {
  padding: 18px 0 22px;
  border-bottom: 1px solid #dde3ed;
}
.post-title {
  margin: .83em 0;
  font-size: 1.4em;
  color: #0d1b4c;
}
.post-title a {
  color: #0d1b4c;
}
.post-title a:hover {
  color: #e6a817;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #8899b0;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #dde3ed;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #8899b0;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #8899b0;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  color: #1565C0;
}
.page-navigator a:hover {
  background: #eef2f7;
  text-decoration: none;
}

.page-navigator .current a {
  color: #fff;
  background: linear-gradient(135deg, #0d1b4c, #1565C0);
  border-radius: 2px;
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #dde3ed;
}
.comment-list li.comment-level-odd {
  background: #f5f7fa;
}
.comment-list li.comment-level-even {
  background: #fff;
}
.comment-list li.comment-by-author {
  background: #fdf8ed;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #8899b0;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #333;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #dde3ed;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #e6a817;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  padding: 0;
  line-height: 1.5;
  text-align: center;
  color: #8899b0;
  background: #0d1b4c;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(21,101,192,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(230,168,23,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.footer-content {
  position: relative;
  z-index: 1;
  padding: 2.5em 1.5em 2em;
}
.footer-brand {
  margin-bottom: 0.8em;
}
.footer-logo {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-right: 1em;
}
.footer-desc {
  color: #6b8ab5;
  font-size: 0.85em;
}
.footer-links {
  margin: 1em 0;
}
.footer-links a {
  color: #b8d0f0;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #e6a817;
  text-decoration: underline;
}
.footer-sep {
  color: #1e3a6e;
  margin: 0 0.8em;
  font-size: 0.85em;
}
.footer-copy {
  margin-top: 1em;
  font-size: 0.8em;
  color: #4a6a94;
  border-top: 1px solid #1a3060;
  padding-top: 1em;
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
  color: #0d1b4c;
}
.post-content h3, .comment-content h3 {
  color: #1565C0;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #c8d4e5;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}

@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta {
    text-align: center;
  }
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}


.hidden {
  display: none !important;
  visibility: hidden; }

.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

.invisible {
  visibility: hidden; }


/* Copyright Notice */
.copyright-notice {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: #eef2f7;
    border-left: 4px solid #1565C0;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}
.copyright-notice p {
    margin: 0;
}
.copyright-notice strong {
    color: #0d1b4c;
}
.copyright-notice a {
    color: #1565C0;
}

/* Anti-copy / Anti-download */
.post-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.post-content img {
    -webkit-user-drag: none;
    pointer-events: none;
}
.post-content a,
.post-meta a,
.tags a {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
.copyright-notice {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* ========== 手机端图片自适应+博客优化 ========== */
.post-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .post-content {
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.8;
  }
  .post-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }
  .post-content h2 {
    font-size: 18px !important;
    margin-top: 24px !important;
  }
  .post-content h3 {
    font-size: 16px !important;
  }
  .post-content img {
    max-width: 100% !important;
    height: auto !important;
  }
  .col-4 {
    display: none !important;
  }
  .col-8 {
    width: 100% !important;
  }
  #comments .comment-list {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .post-content {
    font-size: 14px;
    padding: 0 4px;
  }
  .post-title {
    font-size: 18px !important;
  }
  body {
    font-size: 75%;
  }
}
