/* ------------------------------------
 * Baocui Theme for Typecho
 * Inspired by www.baocuicoin.com design
 * --------------------------------- */

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

body {
    background: #F5F5F5;
    color: #333333;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover, a:active {
    color: #7C2121;
}

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

input, button, textarea {
    outline: none;
    font-family: inherit;
}

/* =====================
   Container
   ===================== */
.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 95%;
}

/* =====================
   Header
   ===================== */
#header {
    background: #FFFFFF;
}

.header-top {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-name {
    display: flex;
    align-items: center;
}

#logo {
    font-size: 28px;
    font-weight: bold;
    color: #7C2121;
    line-height: 100%;
}

#logo img {
    max-height: 60px;
    width: auto;
}

.description {
    display: none;
}

/* Navigation */
#nav-menu {
    display: flex;
    margin-top: 13px;
}

#nav-menu a {
    font-size: 16px;
    font-weight: bold;
    margin-right: 28px;
    border-bottom: 3px solid transparent;
    line-height: 100%;
    padding-bottom: 10px;
    color: #333;
    transition: all 0.3s;
    display: block;
}

#nav-menu a:last-child {
    margin-right: 0;
}

#nav-menu a:hover,
#nav-menu .current {
    border-bottom-color: #7C2121;
    color: #7C2121;
}

/* Search Bar */
.header-search {
    height: 76px;
    background: #7C2121;
}

.header-search .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#search {
    display: flex;
    height: 44px;
    position: static;
    margin: 0;
}

#search .text {
    width: 340px;
    height: 44px;
    border: 0;
    font-size: 15px;
    padding: 0 15px;
    background: #ffffff;
    border-radius: 0;
}

#search .submit {
    width: 60px;
    height: 44px;
    background: #BA151B;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-indent: 0;
    position: static;
    border-radius: 0 100px 100px 0;
}

#search .submit:hover {
    background: #9A080E;
}

/* =====================
   Banner
   ===================== */
.banner {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #7C2121 0%, #BA151B 50%, #7C2121 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.banner:empty {
    display: none;
}

/* =====================
   Page Title
   ===================== */
.page-title {
    display: flex;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #F5F5F5;
    margin-bottom: 40px;
}

.page-title h3,
.page-title span {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    border-bottom: 4px solid #7C2121;
    padding: 20px 0;
    line-height: 100%;
}

.archive-title {
    margin: 1em 0;
    color: #999;
    font-size: 1em;
    text-align: center;
}

/* =====================
   Main Content Area
   ===================== */
#body {
    padding: 40px 0;
}

#main {
    padding: 0;
}

/* =====================
   Business/Service Section (Homepage)
   ===================== */
.business-section {
    padding: 60px 0;
    background: #FFFFFF;
    margin-bottom: 30px;
    border-radius: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: normal;
    color: #000000;
    line-height: 100%;
    margin-bottom: 10px;
}

.section-title .subtitle {
    font-size: 24px;
    color: #7C2121;
    opacity: 0.09;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.business-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.business-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    padding: 20px 0;
    transition: all 0.3s;
    cursor: default;
}

.business-item .icon {
    width: 80px;
    height: 80px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 36px;
    color: #7C2121;
    transition: all 0.3s;
}

.business-item:hover .icon {
    background: #7C2121;
    color: #FFFFFF;
}

.business-item h4 {
    font-size: 18px;
    color: #333;
    transition: all 0.3s;
}

.business-item:hover h4 {
    color: #7C2121;
}

.business-item p {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* =====================
   News Section (Homepage)
   ===================== */
.news-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 60px 0;
    margin-bottom: 30px;
}

.news-section .section-title h2 {
    color: #000;
}

.news-list {
    width: 980px;
    max-width: 100%;
    margin: 0 auto;
}

.news-item {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 25px 30px;
    transition: all 0.3s;
}

.news-item:hover {
    background: #f9f9f9;
    border-color: #7C2121;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.news-item-title a {
    color: #000;
}

.news-item-title a:hover {
    color: #7C2121;
}

.news-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-item-date {
    font-size: 12px;
    color: #999;
}

.news-item-more a {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.news-item-more a:hover {
    color: #7C2121;
}

/* =====================
   Contact Section (Homepage)
   ===================== */
.contact-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 60px;
    margin-bottom: 30px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
}

.contact-icon {
    width: 24px;
    margin-right: 16px;
    color: #7C2121;
    font-size: 20px;
    text-align: center;
}

.contact-detail h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.contact-detail p,
.contact-detail a {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    display: block;
}

.contact-detail a:hover {
    color: #7C2121;
}

/* =====================
   Posts
   ===================== */
.post {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: none;
}

.post-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
}

.post-title a {
    color: #000;
}

.post-title a:hover {
    color: #7C2121;
}

.post-meta {
    margin: 0 0 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid #F5F5F5;
    color: #999;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-meta li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
}

.post-meta li a {
    color: #999;
}

.post-meta li a:hover {
    color: #7C2121;
}

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

.post-content h2 {
    font-size: 1.4em;
    margin: 1.5em 0 0.8em;
    color: #333;
}

.post-content h3 {
    font-size: 1.2em;
    margin: 1.2em 0 0.6em;
    color: #333;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

.post-content a {
    color: #7C2121;
    border-bottom: 1px solid transparent;
}

.post-content a:hover {
    border-bottom-color: #7C2121;
}

.post-content blockquote {
    margin: 1em 0;
    padding: 15px 20px;
    border-left: 4px solid #7C2121;
    background: #F9F9F9;
    color: #666;
    border-radius: 0 8px 8px 0;
}

.post-content pre {
    background: #F3F3F3;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-content code {
    background: #F3F3F3;
    padding: 2px 6px;
    border-radius: 4px;
    color: #B94A48;
    font-size: 0.9em;
}

.post-content table {
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin: 1em 0;
}

.post-content th,
.post-content td {
    padding: 10px 15px;
    border: 1px solid #eee;
}

.post-content th {
    background: #7C2121;
    color: #fff;
    font-weight: 600;
}

.tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #F5F5F5;
    color: #999;
}

.tags a {
    color: #7C2121;
    margin-right: 8px;
}

.tags a:hover {
    color: #333;
}

.post-near {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    color: #999;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 30px;
}

.post-near li {
    margin: 8px 0;
}

.post-near a {
    color: #333;
}

.post-near a:hover {
    color: #7C2121;
}

/* =====================
   Page Navigation
   ===================== */
.page-navigator {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-navigator li {
    display: inline-block;
    margin: 0 4px 8px;
}

.page-navigator a {
    display: inline-block;
    padding: 8px 16px;
    background: #FFFFFF;
    border-radius: 4px;
    border: 1px solid rgba(48, 55, 80, 0.08);
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.page-navigator a:hover {
    background: #7C2121;
    color: #FFFFFF;
}

.page-navigator .current a {
    background: #7C2121;
    color: #FFFFFF;
}

/* =====================
   Sidebar
   ===================== */
#secondary {
    padding-top: 0;
}

.widget {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #7C2121;
    margin-bottom: 15px;
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    margin: 10px 0;
    line-height: 1.6;
}

.widget-list li a {
    color: #555;
    font-size: 14px;
}

.widget-list li a:hover {
    color: #7C2121;
    padding-left: 4px;
}

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

/* =====================
   Comments
   ===================== */
#comments {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

#comments h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7C2121;
}

.comment-list, .comment-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    padding: 20px;
    margin-top: 10px;
    border: 1px solid #F5F5F5;
    border-radius: 8px;
}

.comment-list li.comment-level-odd {
    background: #FAFAFA;
}

.comment-list li.comment-level-even {
    background: #FFF;
}

.comment-list li.comment-by-author {
    background: #FFF9E8;
}

.comment-list li .comment-reply {
    text-align: right;
    font-size: 13px;
}

.comment-meta a {
    color: #999;
    font-size: 13px;
}

.comment-author {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.comment-author .avatar {
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.comment-author cite {
    font-weight: bold;
    font-style: normal;
}

.comment-content {
    line-height: 1.6;
    color: #555;
}

.comment-list .respond {
    margin-top: 20px;
    border-top: 1px solid #F5F5F5;
    padding-top: 20px;
}

.respond .cancel-comment-reply {
    float: right;
    font-size: 13px;
}

#comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

#comment-form .required:after {
    content: " *";
    color: #C00;
}

#comment-form input[type="text"],
#comment-form input[type="email"],
#comment-form input[type="url"],
#comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E9E9E9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#comment-form input[type="text"]:focus,
#comment-form input[type="email"]:focus,
#comment-form input[type="url"]:focus,
#comment-form textarea:focus {
    border-color: #7C2121;
}

#comment-form textarea {
    resize: vertical;
}

#comment-form .submit {
    background: #7C2121;
    color: #FFFFFF;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

#comment-form .submit:hover {
    background: #BA151B;
}

/* =====================
   Footer
   ===================== */
#footer {
    background: #333;
    padding: 40px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.8;
}

#footer a {
    color: rgba(255,255,255,0.6);
}

#footer a:hover {
    color: #FFFFFF;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* =====================
   404 Page
   ===================== */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h2 {
    font-size: 36px;
    color: #7C2121;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.error-page input[type="text"] {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #E9E9E9;
    border-radius: 6px;
}

.error-page .submit {
    background: #7C2121;
    color: #FFFFFF;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
}

/* =====================
   Search Page
   ===================== */
.search-page {
    max-width: 800px;
    margin: 0 auto;
}

.search-page-header {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
}

.search-page-header h2 {
    font-size: 32px;
    color: #7C2121;
    margin-bottom: 30px;
    font-weight: normal;
}

.search-page-form {
    display: flex;
    justify-content: center;
}

.search-page-form form {
    display: flex;
    width: 100%;
    max-width: 520px;
}

.search-page-form .text {
    flex: 1;
    height: 50px;
    border: 2px solid #7C2121;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
    padding: 0 18px;
    color: #333;
}

.search-page-form .text:focus {
    border-color: #BA151B;
}

.search-page-form .submit {
    width: 80px;
    height: 50px;
    background: #7C2121;
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background 0.3s;
}

.search-page-form .submit:hover {
    background: #BA151B;
}

.search-page-title {
    margin-bottom: 25px;
}

.search-page-title h3 {
    font-size: 18px;
    color: #333;
    font-weight: normal;
}

.search-page-title h3 span {
    color: #7C2121;
    font-weight: 600;
}

.search-results {
    margin-bottom: 40px;
}

.search-result-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 16px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.search-result-item:hover {
    border-color: #7C2121;
    box-shadow: 0 4px 20px rgba(124, 33, 33, 0.08);
}

.search-result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-result-title a {
    color: #000;
}

.search-result-title a:hover {
    color: #7C2121;
}

.search-result-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.search-result-category a {
    color: #999;
}

.search-result-category a:hover {
    color: #7C2121;
}

.search-no-results {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
}

.search-no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.search-no-results ul {
    list-style: none;
    padding: 0;
}

.search-no-results li {
    color: #999;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 768px) {
    .search-page-header {
        padding: 30px 20px;
    }

    .search-page-header h2 {
        font-size: 24px;
    }

    .search-result-item {
        padding: 20px;
    }

    .search-result-title {
        font-size: 17px;
    }
}

/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-block;
    padding: 8px 24px;
    background: #7C2121;
    color: #FFFFFF;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.btn:hover {
    background: #BA151B;
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: #7C2121;
    border: 1px solid #7C2121;
}

.btn-outline:hover {
    background: #7C2121;
    color: #FFFFFF;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .header-top {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }

    #nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    #nav-menu a {
        margin: 5px 12px;
        font-size: 14px;
    }

    .header-search {
        height: auto;
        padding: 15px 0;
    }

    .header-search .container {
        justify-content: center;
    }

    #search .text {
        width: 200px;
    }

    .business-grid {
        justify-content: center;
    }

    .business-item {
        width: 45%;
        margin-bottom: 20px;
    }

    .news-item {
        padding: 20px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .post {
        padding: 20px;
    }

    .post-meta {
        gap: 10px;
    }

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

    #comments {
        padding: 20px;
    }

    .business-section {
        padding: 30px 0;
    }

    .news-section {
        padding: 30px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }

    #footer {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .business-item {
        width: 48%;
    }

    .business-item .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    #search .text {
        width: 160px;
    }

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

/* =====================
   Utility
   ===================== */
.hidden {
    display: none !important;
    visibility: hidden;
}

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

.invisible {
    visibility: hidden;
}

/* Grid system for backward compatibility */
.col-mb-12 {
    width: 100%;
}

.col-8 {
    width: 66.66667%;
}

.col-3 {
    width: 25%;
}

.col-offset-1 {
    margin-left: 8.33333%;
}

@media (max-width: 768px) {
    .col-8,
    .col-3,
    .col-offset-1 {
        width: 100%;
        margin-left: 0;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.row > [class*="col-"] {
    padding: 0 10px;
}

.kit-hidden-tb {
    display: block;
}

@media (max-width: 768px) {
    .kit-hidden-tb {
        display: none;
    }
}