/* =============================================
   2014 Flat Design Personal Blog
   Compatible with iOS 6.1.3 (Safari 6.1)
   No Flexbox - Uses Float Layout
   ============================================= */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

a {
    color: #3498db;
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    -ms-interpolation-mode: bicubic;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 960px;
    width: auto;
    margin: 0 auto;
    padding: 0 10px;
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* =============================================
   Header
   ============================================= */
#site-header {
    background-color: #3498db;
    color: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-title a {
    color: #fff;
}

.site-title a:hover {
    color: #fff;
    opacity: 0.9;
}

.site-desc {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 15px;
}

/* Navigation */
.main-nav {
    display: block;
}

.main-nav a {
    display: inline-block;
    color: #fff;
    padding: 8px 15px;
    margin-right: 5px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.nav-active {
    background-color: #2980b9;
    color: #fff;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* =============================================
   Main Layout
   ============================================= */
#main-content {
    float: left;
    width: 65%;
    padding: 30px 0;
}

#sidebar {
    float: right;
    width: 30%;
    padding: 30px 0;
}

/* =============================================
   Post Cards (Index Page)
   ============================================= */
.post-card {
    background: #fff;
    margin-bottom: 30px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    overflow: hidden;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -webkit-transition: box-shadow 0.2s ease;
    -moz-transition: box-shadow 0.2s ease;
    -o-transition: box-shadow 0.2s ease;
    transition: box-shadow 0.2s ease;
}

.post-thumb {
    position: relative;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    display: block;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.post-info {
    padding: 15px 20px 0;
    font-size: 12px;
    color: #999;
}

.post-date {
    margin-right: 15px;
}

.post-category {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 2px 8px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 11px;
}

.post-title {
    padding: 10px 20px;
    font-size: 20px;
    line-height: 1.4;
}

.post-title a {
    color: #2c3e50;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    padding: 0 20px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.read-more {
    display: block;
    padding: 12px 20px;
    background-color: #f8f9fa;
    color: #3498db;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #eee;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.read-more:hover {
    background-color: #3498db;
    color: #fff;
}

/* =============================================
   Pagination
   ============================================= */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.page-current,
.page-link,
.page-next {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background-color: #fff;
    color: #3498db;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.page-current {
    background-color: #3498db;
    color: #fff;
}

.page-link:hover,
.page-next:hover {
    background-color: #3498db;
    color: #fff;
}

/* =============================================
   Single Post
   ============================================= */
.post-full {
    background: #fff;
    padding: 30px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.post-meta span {
    margin-right: 15px;
}

.post-full .post-title {
    font-size: 26px;
    padding: 0;
    line-height: 1.3;
}

.post-thumb-large {
    margin-bottom: 25px;
}

.post-thumb-large img {
    width: 100%;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.post-content h2 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.post-content h3 {
    font-size: 17px;
    margin: 25px 0 12px;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
    list-style: disc;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #666;
}

.post-content pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 20px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-content code {
    font-family: "Monaco", "Menlo", "Consolas", monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 13px;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-label {
    color: #999;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px 5px 3px 0;
    background-color: #f0f0f0;
    color: #666;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 12px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background-color: #3498db;
    color: #fff;
}

/* Post Navigation */
.post-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.post-nav-prev {
    float: left;
    width: 48%;
}

.post-nav-next {
    float: right;
    width: 48%;
    text-align: right;
}

.post-nav a {
    display: block;
    padding: 10px 15px;
    background-color: #f8f9fa;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.post-nav a:hover {
    background-color: #3498db;
    color: #fff;
}

/* =============================================
   Comments
   ============================================= */
.comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.comment-item {
    padding: 20px;
    background-color: #f8f9fa;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-avatar {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
}

.comment-body {
    overflow: hidden;
}

.comment-meta {
    margin-bottom: 8px;
    font-size: 13px;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    margin-right: 10px;
}

.comment-date {
    color: #999;
}

.comment-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.comment-form {
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.comment-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    -webkit-transition: border-color 0.2s ease;
    -moz-transition: border-color 0.2s ease;
    -o-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn-submit {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3498db;
    color: #fff;
    border: none;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* =============================================
   Sidebar Widgets
   ============================================= */
.widget {
    background: #fff;
    margin-bottom: 25px;
    padding: 20px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* About Widget */
.widget-about {
    text-align: center;
}

.avatar-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 100%;
    height: 100%;
}

.widget-about p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 70px 10px 12px;
    border: 1px solid #ddd;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 13px;
    -webkit-transition: border-color 0.2s ease;
    -moz-transition: border-color 0.2s ease;
    -o-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 6px 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #2980b9;
}

/* Categories Widget */
.widget-categories ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-categories ul li a {
    display: block;
    color: #555;
    font-size: 13px;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.widget-categories ul li a:hover {
    color: #3498db;
}

.widget-categories .count {
    color: #999;
    font-size: 12px;
}

/* Tags Cloud Widget */
.tag-cloud {
    line-height: 2;
}

.tag-link {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 5px 3px 0;
    background-color: #f0f0f0;
    color: #666;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background-color: #3498db;
    color: #fff;
}

/* Links Widget */
.widget-links ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-links ul li a {
    color: #555;
    font-size: 13px;
}

.widget-links ul li a:hover {
    color: #3498db;
}

/* =============================================
   Page Content (About, Archives)
   ============================================= */
.page-content {
    background: #fff;
    padding: 30px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

/* About Page */
.about-avatar {
    text-align: center;
    margin-bottom: 25px;
}

.about-avatar img {
    width: 120px;
    height: 120px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
}

.about-text h2 {
    font-size: 18px;
    margin: 25px 0 12px;
    color: #2c3e50;
}

.about-text ul {
    padding-left: 25px;
    margin: 10px 0;
}

.about-text li {
    list-style: disc;
    margin-bottom: 8px;
}

/* Archives Page */
.archive-year {
    margin-bottom: 30px;
}

.archive-year h2 {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.archive-month {
    margin-bottom: 20px;
    padding-left: 20px;
}

.archive-month h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.archive-month ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.archive-date {
    display: inline-block;
    width: 55px;
    color: #999;
    font-size: 13px;
}

.archive-month ul li a {
    color: #333;
    font-size: 14px;
}

.archive-month ul li a:hover {
    color: #3498db;
}

.archive-category {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    color: #666;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 11px;
}

/* =============================================
   Footer
   ============================================= */
#site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
    margin-top: 20px;
}

#site-footer p {
    font-size: 13px;
    margin-bottom: 10px;
}

#site-footer a {
    color: #3498db;
}

#site-footer a:hover {
    color: #5dade2;
}

.social-links {
    margin: 15px 0;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #34495e;
    color: #ecf0f1;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 13px;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background-color: #3498db;
    color: #fff;
}

.back-to-top {
    margin-top: 20px;
}

.back-to-top a {
    color: #95a5a6;
    font-size: 13px;
}

.back-to-top a:hover {
    color: #fff;
}

/* =============================================
   Responsive Design - Media Queries
   ============================================= */

/* Tablet: 768px - 960px */
@media screen and (max-width: 960px) {
    #main-content {
        width: 60%;
    }

    #sidebar {
        width: 35%;
    }
}

/* Large Phone: 481px - 768px */
@media screen and (max-width: 768px) {
    #main-content {
        float: none;
        width: 100%;
    }

    #sidebar {
        float: none;
        width: 100%;
        padding-top: 10px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2980b9;
        padding: 10px 0;
        z-index: 999;
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav a {
        display: block;
        padding: 12px 20px;
        margin: 0;
        border-bottom: 1px solid #2471a3;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    .post-full {
        padding: 20px;
    }

    .post-full .post-title {
        font-size: 22px;
    }

    .post-nav-prev,
    .post-nav-next {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .post-nav-next {
        text-align: left;
    }
}

/* Small Phone: 320px - 480px (iPhone 4S iOS 6) */
@media screen and (max-width: 480px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 8px;
        width: 100%;
    }

    #site-header {
        padding: 12px 0;
    }

    .site-title {
        font-size: 20px;
    }

    .site-desc {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .main-nav a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .post-card {
        margin-bottom: 15px;
    }

    .post-thumb img {
        width: 100%;
        height: auto;
    }

    .post-title {
        font-size: 16px;
        padding: 8px 10px;
    }

    .post-info {
        padding: 8px 10px 0;
        font-size: 11px;
    }

    .post-excerpt {
        padding: 0 10px 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .read-more {
        padding: 8px 10px;
        font-size: 12px;
    }

    .post-full {
        padding: 12px;
    }

    .post-full .post-title {
        font-size: 18px;
    }

    .post-content {
        font-size: 13px;
    }

    .post-content h2 {
        font-size: 16px;
    }

    .post-content pre {
        padding: 10px;
        font-size: 11px;
        word-wrap: break-word;
        white-space: pre-wrap;
    }

    .widget {
        padding: 12px;
    }

    .widget-title {
        font-size: 14px;
    }

    .page-content {
        padding: 12px;
    }

    .page-title {
        font-size: 18px;
    }

    .comment-item {
        padding: 12px;
    }

    .comment-avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .comment-body p {
        font-size: 12px;
    }

    .comment-form {
        padding: 12px;
    }

    .form-row input,
    .form-row textarea {
        font-size: 13px;
        padding: 8px;
    }

    .archive-month {
        padding-left: 8px;
    }

    .archive-date {
        display: block;
        width: auto;
        margin-bottom: 3px;
        font-size: 11px;
    }

    .archive-month ul li a {
        font-size: 13px;
    }

    .post-tags a {
        font-size: 11px;
        padding: 3px 8px;
    }

    .tag-cloud .tag-link {
        font-size: 11px !important;
    }

    #site-footer {
        padding: 20px 0;
    }

    #site-footer p {
        font-size: 11px;
    }

    .social-icon {
        padding: 6px 10px;
        font-size: 11px;
        margin: 0 3px;
    }

    .pagination {
        padding: 15px 0;
    }

    .page-current,
    .page-link,
    .page-next {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    #site-header,
    #sidebar,
    #site-footer,
    .post-nav,
    .comments,
    .nav-toggle {
        display: none;
    }

    #main-content {
        width: 100%;
        float: none;
    }

    .post-full {
        box-shadow: none;
        border: none;
    }

    a {
        color: #000;
    }
}
