/*
Theme Name: 美信康年大药房
Theme URI:
Author:
Description: 美信康年大药房网上药店 WordPress 主题
Version: 1.0.0
*/

/* =========================
   基础
========================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f8fa;
    color: #30485a;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

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

a:hover {
    text-decoration: none;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
}

button,
input {
    font-family: inherit;
}

.container {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}


/* =========================
   Header
========================= */

.site-header {
    background: #ffffff;
}

.header-main {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 35px;
}


/* Logo */

.site-branding {
    flex: 0 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1a7f5a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-text strong {
    color: #0d2b3e;
    font-size: 20px;
    font-weight: 700;
}

.logo-text span {
    color: #7a8d9b;
    font-size: 12px;
    margin-top: 3px;
}


/* WordPress 自定义 Logo */

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 58px;
    width: auto;
}


/* Search */

.header-search {
    flex: 1;
    max-width: 580px;
}

.header-search form {
    width: 100%;
    height: 44px;
    border: 1px solid #dce7ed;
    border-radius: 24px;
    background: #ffffff;
    display: flex;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #30485a;
    font-size: 14px;
    background: transparent;
}

.header-search input::placeholder {
    color: #9aaab5;
}

.header-search button {
    width: 92px;
    border: 0;
    background: #1a7f5a;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.header-search button:hover {
    background: #126b4b;
}


/* Header Contact */

.header-contact {
    margin-left: auto;
    flex: 0 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item > i {
    color: #1a7f5a;
    font-size: 21px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.contact-item span {
    color: #8b9aa5;
    font-size: 12px;
}

.contact-item strong {
    color: #0d2b3e;
    font-size: 16px;
    margin-top: 4px;
}


/* =========================
   主导航
========================= */

.main-nav {
    background: #0d2b3e;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.main-nav a {
    min-width: 110px;
    padding: 13px 20px;
    color: #dce8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a i {
    font-size: 13px;
}

.main-nav a:hover,
.main-nav a.active {
    background: #1a7f5a;
    color: #ffffff;
}


/* =========================
   药品分类菜单
========================= */

.category-bar {
    background: #ffffff;
    border-top: 1px solid #eef3f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.category-bar .container {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar .container::-webkit-scrollbar {
    display: none;
}


/*
   WordPress wp_nav_menu 输出：

   <ul>
       <li>
           <a href="">分类名称</a>
       </li>
   </ul>
*/

.category-bar ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex;
    align-items: center;
    min-width: max-content;
}

.category-bar li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative;
}

.category-bar li a {
    padding: 14px 20px;
    color: #3d5a73;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 7px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.category-bar li a:hover {
    color: #0d2b3e;
    border-bottom-color: #1a7f5a;
    background: #f8fcfa;
}

.category-bar li.current-menu-item > a,
.category-bar li.current-menu-ancestor > a,
.category-bar li.current-menu-parent > a,
.category-bar li.current_page_item > a {
    color: #0d2b3e;
    border-bottom-color: #1a7f5a;
    background: #f8fcfa;
}


/* 如果菜单名称前有图标 */

.category-bar li a i {
    color: #1a7f5a;
    font-size: 13px;
}


/* =========================
   首页 / 分类页主体
========================= */

.site-main {
    min-height: 500px;
    padding: 0 0 50px;
}

.site-main > .container {
    position: relative;
}


/* =========================
   Section Title
========================= */

.section-title {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h2 {
    margin: 0;
    color: #0d2b3e;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title h2 i {
    color: #1a7f5a;
    font-size: 19px;
}


/* =========================
   药品循环列表
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 16px 20px;
    border: 1px solid #eef3f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #d8ebe3;
    box-shadow: 0 8px 24px rgba(13, 43, 62, 0.07);
}


/* Product image */

.product-image {
    width: 100%;
    height: 210px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #f7fafb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}


/* Product name */

.product-card .product-name {
    font-weight: 700;
    font-size: 16px;
    color: #0d2b3e;
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.45;
}

.product-card .product-name > i {
    color: #1a7f5a;
    font-size: 12px;
    background: #e8f4ef;
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.product-card .product-name a {
    color: #0d2b3e;
}

.product-card .product-name a:hover {
    color: #1a7f5a;
}


/* Category */

.generic-name {
    margin-bottom: 8px;
    color: #78909e;
    font-size: 12px;
    line-height: 1.6;
}

.generic-name a {
    color: #1a7f5a;
    margin-right: 5px;
}

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


/* Excerpt */

.product-excerpt {
    color: #708391;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}


/* More */

.product-more {
    padding-top: 10px;
    border-top: 1px solid #eef3f7;
    color: #1a7f5a;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-more i {
    font-size: 11px;
}

.product-more:hover {
    color: #0d2b3e;
}


/* =========================
   没有药品
========================= */

.product-empty {
    min-height: 260px;
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #91a0aa;
}

.product-empty i {
    font-size: 38px;
    color: #b7c8c1;
    margin-bottom: 10px;
}

.product-empty p {
    margin: 0;
    font-size: 14px;
}


/* =========================
   分页
========================= */

.pagination {
    margin: 30px 0 10px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dfe9ee;
    border-radius: 8px;
    background: #ffffff;
    color: #526a79;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.pagination a:hover,
.pagination .current {
    background: #1a7f5a;
    border-color: #1a7f5a;
    color: #ffffff;
}


/* =========================
   Footer
========================= */

.site-footer {
    background: #0d2b3e;
    color: #b9cbd5;
    margin-top: 30px;
}

.footer-main {
    padding: 42px 0 35px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 45px;
}


/* Footer brand */

.footer-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    color: #9db2be;
    font-size: 13px;
    line-height: 1.9;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo > i {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #1a7f5a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.footer-logo strong {
    color: #ffffff;
    font-size: 18px;
}

.footer-logo span {
    color: #91a8b5;
    font-size: 11px;
    margin-top: 3px;
}


/* Footer columns */

.footer-column h3 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    list-style: none;
    margin-bottom: 8px;
}

.footer-column li a {
    color: #a9bdc8;
    font-size: 13px;
}

.footer-column li a:hover {
    color: #ffffff;
}


/* WordPress footer category menu */

.footer-category-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-category-menu li {
    list-style: none !important;
    margin-bottom: 8px;
}


/* Footer contact */

.footer-contact p {
    margin: 0 0 9px;
    color: #a9bdc8;
    font-size: 13px;
    line-height: 1.7;
}

.footer-contact p i {
    width: 20px;
    color: #6fc49f;
    margin-right: 5px;
}


/* Footer bottom */

.footer-bottom {
    min-height: 65px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    color: #8199a6;
    font-size: 12px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.footer-links a {
    color: #91a8b5;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================
   WordPress 默认内容兼容
========================= */

.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================
   平板
========================= */

@media (max-width: 1100px) {

    .container {
        max-width: calc(100% - 30px);
    }

    .header-main {
        gap: 20px;
    }

    .header-contact {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}


/* =========================
   手机
========================= */

@media (max-width: 768px) {

    .container {
        max-width: calc(100% - 24px);
    }


    /* Header */

    .header-main {
        min-height: auto;
        padding: 15px 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .site-branding {
        display: flex;
        justify-content: center;
    }

    .header-search {
        max-width: none;
        width: 100%;
    }


    /* Main nav */

    .main-nav .container {
        overflow-x: auto;
        scrollbar-width: none;
        max-width: 100%;
    }

    .main-nav .container::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        min-width: 92px;
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }


    /* Category */

    .category-bar {
        margin-bottom: 18px;
    }

    .category-bar .container {
        max-width: 100%;
    }

    .category-bar li a {
        padding: 12px 14px;
        font-size: 13px;
    }


    /* Section */

    .section-title {
        margin-bottom: 15px;
    }

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


    /* Products */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 13px 12px 15px;
        border-radius: 13px;
    }

    .product-image {
        height: 155px;
        margin-bottom: 11px;
    }

    .product-card .product-name {
        font-size: 14px;
    }

    .product-excerpt {
        font-size: 12px;
    }


    /* Footer */

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding: 32px 0 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        white-space: normal;
        flex-wrap: wrap;
    }
}


/* =========================
   小屏手机
========================= */

@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-icon {
        width: 43px;
        height: 43px;
        font-size: 21px;
    }

    .header-search form {
        height: 42px;
    }

    .header-search button {
        width: 76px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-contact {
        grid-column: auto;
    }
}
/* =========================
   Single 药品详情页
========================= */

.single-product {
    padding-bottom: 30px;
}


/* 面包屑 */

.single-breadcrumb {
    min-height: 42px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #82929d;
    font-size: 13px;
    margin-bottom: 15px;
}

.single-breadcrumb a {
    color: #5f7786;
}

.single-breadcrumb a:hover {
    color: #1a7f5a;
}

.single-breadcrumb i {
    font-size: 9px;
    color: #a9b7bf;
}

.single-breadcrumb span {
    color: #1a7f5a;
}


/* 药品基本信息 */

.product-detail {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 20px;
}


/* 药品图片 */

.product-detail-image {
    width: 100%;
    height: 380px;
    border-radius: 14px;
    background: #f7fafb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a7b6be;
}

.product-no-image i {
    font-size: 55px;
    margin-bottom: 12px;
}

.product-no-image span {
    font-size: 13px;
}


/* 药品信息 */

.product-detail-info {
    padding: 8px 0;
}

.product-detail-info h1 {
    margin: 0 0 18px;
    color: #0d2b3e;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
}


/* 分类 */

.product-detail-category {
    padding: 13px 0;
    border-top: 1px solid #eef3f7;
    border-bottom: 1px solid #eef3f7;
    color: #758895;
    font-size: 13px;
}

.product-detail-category span {
    margin-right: 8px;
}

.product-detail-category a {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 9px;
    border-radius: 5px;
    background: #e8f4ef;
    color: #1a7f5a;
}

.product-detail-category a:hover {
    background: #1a7f5a;
    color: #ffffff;
}


/* 发布时间 */

.product-detail-meta {
    padding: 14px 0;
    color: #82929d;
    font-size: 13px;
}

.product-detail-meta i {
    color: #1a7f5a;
    margin-right: 5px;
}

.product-detail-meta span {
    margin-right: 6px;
}


/* 摘要 */

.product-summary {
    padding: 16px 18px;
    border-radius: 10px;
    background: #f7fafb;
    color: #627783;
    font-size: 14px;
    line-height: 1.8;
}

.product-summary p {
    margin: 0;
}


/* 分隔线 */

.product-detail-line {
    height: 1px;
    background: #eef3f7;
    margin: 20px 0;
}


/* 服务信息 */

.product-service {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-service div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #718692;
    font-size: 13px;
}

.product-service i {
    width: 20px;
    color: #1a7f5a;
    text-align: center;
}


/* =========================
   详细内容
========================= */

.single-content-box {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
}

.single-content-title {
    padding: 18px 24px;
    border-bottom: 1px solid #eef3f7;
}

.single-content-title h2 {
    margin: 0;
    color: #0d2b3e;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.single-content-title h2 i {
    color: #1a7f5a;
    font-size: 17px;
}


/* 正文 */

.single-content {
    padding: 28px;
    color: #435b69;
    font-size: 15px;
    line-height: 2;
}

.single-content p {
    margin: 0 0 18px;
}

.single-content h2 {
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #1a7f5a;
    color: #0d2b3e;
    font-size: 20px;
    line-height: 1.5;
}

.single-content h3 {
    margin: 24px 0 12px;
    color: #0d2b3e;
    font-size: 17px;
}

.single-content h4 {
    margin: 20px 0 10px;
    color: #0d2b3e;
    font-size: 15px;
}

.single-content ul,
.single-content ol {
    margin: 15px 0 20px 25px;
}

.single-content li {
    margin-bottom: 7px;
}

.single-content a {
    color: #1a7f5a;
}

.single-content a:hover {
    text-decoration: underline;
}

.single-content img {
    max-width: 100%;
    height: auto;
    margin: 18px auto;
}

.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.single-content table th,
.single-content table td {
    padding: 10px 12px;
    border: 1px solid #e3ebef;
    text-align: left;
}

.single-content table th {
    background: #f7fafb;
    color: #0d2b3e;
}


/* =========================
   所属分类
========================= */

.single-category-box {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #718692;
    font-size: 13px;
}

.single-category-box > span {
    margin-right: 8px;
    color: #536b79;
}

.single-category-box i {
    color: #1a7f5a;
    margin-right: 5px;
}

.single-category-box a {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 6px;
    border-radius: 5px;
    background: #e8f4ef;
    color: #1a7f5a;
}

.single-category-box a:hover {
    background: #1a7f5a;
    color: #ffffff;
}


/* =========================
   上下篇
========================= */

.single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.single-prev,
.single-next {
    min-height: 82px;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-next {
    text-align: right;
    align-items: flex-end;
}

.single-navigation span {
    color: #9aaab3;
    font-size: 12px;
    margin-bottom: 5px;
}

.single-navigation a {
    max-width: 100%;
    color: #405968;
    font-size: 13px;
    line-height: 1.5;
}

.single-navigation a:hover {
    color: #1a7f5a;
}

.single-navigation i {
    color: #1a7f5a;
    font-size: 10px;
}


/* =========================
   Single 手机端
========================= */

@media (max-width: 900px) {

    .product-detail {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 25px;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }
}


@media (max-width: 768px) {

    .product-detail {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 20px;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-detail-info {
        padding: 0;
    }

    .product-detail-info h1 {
        font-size: 22px;
    }

    .single-content-title {
        padding: 15px 18px;
    }

    .single-content {
        padding: 20px 18px;
        font-size: 14px;
    }

    .single-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .single-navigation {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .single-next {
        text-align: left;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .single-breadcrumb {
        font-size: 12px;
    }

    .product-detail-image {
        height: 240px;
    }

    .product-detail-info h1 {
        font-size: 20px;
    }

    .product-summary {
        padding: 13px 14px;
    }

    .single-content {
        padding: 18px 15px;
    }

    .single-content-title h2 {
        font-size: 17px;
    }
}
/* =========================
   Category 分类页
========================= */

.category-description {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #687d89;
    font-size: 13px;
    line-height: 1.9;
}

.category-description p {
    margin: 0;
}

.section-title h1 {
    margin: 0;
    color: #0d2b3e;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-title h1 i {
    color: #1a7f5a;
    font-size: 19px;
}

.category-description a {
    color: #1a7f5a;
}

.category-description a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .section-title h1 {
        font-size: 19px;
    }

    .category-description {
        padding: 14px 15px;
        font-size: 12px;
    }
}

/* =========================
   WordPress 普通页面
========================= */

.page-content-wrap {
    padding-bottom: 30px;
}


/* 页面内容盒 */

.page-content-box {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 18px;
    overflow: hidden;
}


/* 页面标题 */

.page-title {
    padding: 24px 28px;
    border-bottom: 1px solid #eef3f7;
}

.page-title h1 {
    margin: 0;
    color: #0d2b3e;
    font-size: 25px;
    line-height: 1.5;
    font-weight: 700;
}


/* 页面正文 */

.page-content {
    padding: 30px;
    color: #435b69;
    font-size: 15px;
    line-height: 2;
}

.page-content p {
    margin: 0 0 18px;
}

.page-content h2 {
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #1a7f5a;
    color: #0d2b3e;
    font-size: 20px;
    line-height: 1.5;
}

.page-content h3 {
    margin: 24px 0 12px;
    color: #0d2b3e;
    font-size: 17px;
}

.page-content h4 {
    margin: 20px 0 10px;
    color: #0d2b3e;
    font-size: 15px;
}

.page-content ul,
.page-content ol {
    margin: 15px 0 20px 25px;
}

.page-content li {
    margin-bottom: 7px;
}

.page-content a {
    color: #1a7f5a;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.page-content figure {
    margin: 20px 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content table th,
.page-content table td {
    padding: 10px 12px;
    border: 1px solid #e3ebef;
    text-align: left;
}

.page-content table th {
    background: #f7fafb;
    color: #0d2b3e;
}


/* 页面多页 */

.page-links {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.page-links span,
.page-links a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dfe9ee;
    border-radius: 7px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #526a79;
    font-size: 13px;
}

.page-links a:hover {
    background: #1a7f5a;
    border-color: #1a7f5a;
    color: #ffffff;
}


/* 手机 */

@media (max-width: 768px) {

    .page-title {
        padding: 18px 18px;
    }

    .page-title h1 {
        font-size: 21px;
    }

    .page-content {
        padding: 20px 18px;
        font-size: 14px;
    }

    .page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


@media (max-width: 480px) {

    .page-title h1 {
        font-size: 19px;
    }

    .page-content {
        padding: 18px 15px;
    }
}
/* =========================================================
   搜索页面
   ========================================================= */

/* 搜索页面头部 */
.search-header {
    margin-bottom: 25px;
}

/* 搜索面包屑 */
.search-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 14px;
    color: #777;
}

.search-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.search-breadcrumb a:hover {
    color: #0073aa;
}

.search-breadcrumb i {
    font-size: 11px;
    color: #aaa;
}

.search-breadcrumb span {
    color: #999;
}

/* 搜索标题 */
.search-title {
    margin: 0 0 22px;
    padding: 0;
    font-size: 26px;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
}

.search-title strong {
    color: #0073aa;
    font-weight: 600;
}

/* 搜索框 */
.search-form-page {
    width: 100%;
    margin-bottom: 20px;
}

.search-form-inner {
    display: flex;
    width: 100%;
    max-width: 760px;
}

.search-form-inner input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 15px;
    box-sizing: border-box;
}

.search-form-inner input[type="search"]:focus {
    border-color: #0073aa;
}

.search-form-inner button {
    width: 110px;
    height: 48px;
    border: 1px solid #0073aa;
    border-radius: 0 4px 4px 0;
    background: #0073aa;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.search-form-inner button:hover {
    background: #005f8d;
}

.search-form-inner button i {
    margin-right: 5px;
}

/* 搜索结果数量 */
.search-result-info {
    margin-bottom: 20px;
    padding: 13px 16px;
    background: #f7f7f7;
    border: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

.search-result-info strong {
    color: #333;
}

/* 搜索结果继续使用 product-grid / product-card */

/* 搜索无结果 */
.search-empty {
    margin: 30px 0 50px;
    padding: 80px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.search-empty > i {
    display: block;
    margin-bottom: 20px;
    font-size: 50px;
    color: #ccc;
}

.search-empty h2 {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 500;
    color: #444;
}

.search-empty p {
    margin: 8px 0;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.search-empty p strong {
    color: #555;
}

.search-empty a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.search-empty a:hover {
    background: #005f8d;
}

.search-empty a i {
    margin-right: 5px;
}

/* 搜索页面移动端 */
@media screen and (max-width: 600px) {

    .search-title {
        font-size: 22px;
    }

    .search-form-inner input[type="search"] {
        height: 44px;
        font-size: 14px;
    }

    .search-form-inner button {
        width: 90px;
        height: 44px;
        font-size: 14px;
    }

    .search-empty {
        padding: 60px 15px;
    }

    .search-empty h2 {
        font-size: 20px;
    }

}

/* =========================
   搜索页面主要样式
   ========================= */

.search-header {
    margin-bottom: 20px;
}

/* 搜索标题 */
.search-title {
    margin: 0 0 18px;
    padding: 0;
    color: #333;
    font-size: 26px;
    line-height: 1.5;
    font-weight: 600;
}

.search-title strong {
    color: #0073aa;
    font-weight: 600;
}

/* 搜索框 */
.search-form-page {
    margin: 0 0 20px;
}

.search-form-inner {
    display: flex;
    width: 100%;
    max-width: 700px;
}

.search-form-inner input[type="search"] {
    flex: 1;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.search-form-inner input[type="search"]:focus {
    border-color: #0073aa;
}

.search-form-inner button {
    width: 90px;
    height: 46px;
    border: 1px solid #0073aa;
    border-radius: 0 4px 4px 0;
    background: #0073aa;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.search-form-inner button:hover {
    background: #005f8d;
}

/* 搜索结果信息 */
.search-result-info {
    margin: 0 0 20px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #777;
    font-size: 14px;
}

.search-result-info strong {
    color: #333;
    font-weight: 600;
}


/* =========================
   搜索结果药品列表
   ========================= */

.search-page .product-grid {
    margin-top: 20px;
}


/* =========================
   无搜索结果
   ========================= */

.search-empty {
    margin: 30px 0;
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.search-empty > i {
    display: block;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 45px;
}

.search-empty h2 {
    margin: 0 0 12px;
    color: #444;
    font-size: 21px;
    font-weight: 500;
}

.search-empty p {
    margin: 6px 0;
    color: #888;
    font-size: 14px;
}

.search-empty a {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 18px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.search-empty a:hover {
    background: #005f8d;
}


/* =========================
   手机
   ========================= */

@media screen and (max-width: 600px) {

    .search-title {
        font-size: 22px;
    }

    .search-form-inner input[type="search"] {
        height: 44px;
    }

    .search-form-inner button {
        width: 80px;
        height: 44px;
    }

    .search-result-info {
        font-size: 13px;
    }

}