/* WordPress Theme Styles - Matching Original Site */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.sjp {
    text-indent: 4ch;
  }

.site {
    overflow-x: hidden;
    border-bottom: 1px solid #e0e0e0;
}

/* Header Banner with Background Image */
.site-header {
    position: relative;
}

.header-banner {
    background-image: url('../images/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 50px 0;
    text-align: center;
    min-height: 50%;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
}

.header-banner-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-size: 2.2em;
    margin: 0 0 0.5em 0;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.site-description {
    font-size: 1em;
    margin: 0;
    color: #34495e;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

/* Navigation Menu Below Banner */
.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.menu-menu-1-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.2em;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.menu li {
    position: relative;
}

.menu a {
    color: #333;
    text-decoration: none;
    padding: 1em 0;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.menu a:hover,
.current-menu-item > a {
    color: #3498db;
}

.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 0.3em;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    padding: 0.75em 1em;
    color: #333;
    white-space: nowrap;
}

.sub-menu a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* Content Area */
.site-content {
    padding: 3em 0;
    background-color: #fff;
    min-height: 65vh;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Page Two-Column Layout */
.about-page-layout {
    display: flex;
    gap: 4em;
    align-items: flex-start;
    margin-top: 1em;
}

.about-sidebar {
    flex: 0 0 180px;
    min-width: 180px;
    padding-top: 0;
}

.about-sidebar .entry-title {
    font-size: 1.6em;
    margin: 0;
    color: #333;
    font-weight: normal;
    display: block;
    margin-right: 0;
    line-height: 1.4;
}

.about-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.about-content h2 {
    color: #333;
    font-size: 1.4em;
    margin: 0 0 1em 0;
    font-weight: normal;
}

.about-content h3 {
    color: #333;
    font-size: 1.1em;
    margin: 2em 0 0.8em 0;
    font-weight: normal;
}

.about-content h3 strong {
    font-weight: bold;
    color: #333;
}

.about-content ul {
    margin: 1em 0;
    padding-left: 1.5em;
    line-height: 1.8;
}

.about-content ul li {
    margin: 0.6em 0;
    color: #333;
}

.about-content p {
    margin: 1em 0;
    line-height: 1.8;
}

.about-content p em {
    font-style: italic;
    color: #333;
}

/* WordPress Caption Styles */
.wp-caption {
    max-width: 100%;
    margin: 1em 0;
}

.wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

figure {
    margin: 1em 0;
}

figure.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.entry-header {
    margin-bottom: 2.5em;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
}

.entry-title {
    font-size: 1.6em;
    margin: 0;
    color: #333;
    display: inline-block;
    margin-right: 1em;
    font-weight: normal;
}

.entry-subtitle {
    font-size: 1.6em;
    margin: 0;
    color: #333;
    display: inline-block;
    font-weight: normal;
}

/* Content Images */
.content-images {
    margin: 2em 0 3em 0;
    text-align: center;
}

/* 确保所有图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 覆盖内联样式中的固定宽度，确保响应式 */
img[width] {
    max-width: 100%;
    height: auto;
}

.plaque-image {
    display: inline-block;
    margin: 0 auto;
    max-width: 50%;
}

.plaque-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

.doctor-portrait {
    text-align: center;
    margin: 2em auto;
    max-width: 300px;
}

.doctor-portrait img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

.entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 1em;
}

.entry-content .service-description {
    font-size: 1.1em;
    font-weight: normal;
    margin: 1.5em 0 1em 0;
    color: #333;
}

.entry-content .target-audience {
    margin: 1.5em 0;
    line-height: 2;
}

.entry-content .target-audience em {
    font-style: italic;
    color: #555;
    font-size: 1em;
}

.entry-content .services {
    margin: 1.5em 0;
    line-height: 2;
}

.entry-content .services strong {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1em;
}

.entry-content .doctor-name {
    font-size: 1.1em;
    margin: 1.5em 0 0.5em 0;
    color: #2c3e50;
}

.entry-content .separator {
    text-align: center;
    margin: 1em 0;
    color: #999;
    letter-spacing: 2px;
}

.entry-content h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 1.5em 0 1em 0;
}

.entry-content h3 {
    color: #333;
    font-size: 1.3em;
    margin: 2em 0 1em 0;
    font-weight: normal;
}

.entry-content h4 {
    color: #333;
    font-size: 1.1em;
    margin: 1.5em 0 0.5em 0;
    font-weight: normal;
}

.entry-content p {
    margin: 0.8em 0;
}

.entry-content strong {
    font-weight: bold;
    color: #2c3e50;
}

.entry-content a {
    color: #3498db;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-content .info-links {
    margin-top: 2em;
    text-align: center;
    font-size: 0.95em;
}

.entry-content .info-links a {
    color: #3498db;
    margin: 0 0.5em;
}

.entry-content .info-link {
    margin-top: 2em;
    text-align: left;
    font-size: 0.95em;
}

.entry-content .info-link a {
    color: #3498db;
}

/* Diploma Images */
.diploma-images {
    margin: 3em 0 2em 0;
    text-align: center;
}

.diploma-image {
    margin: 1.5em auto;
    display: block;
    max-width: 100%;
    text-align: center;
}

.diploma-image img {
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    max-width: 50%;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2em 0;
    text-align: center;
    margin-top: 3em;
}

/* Bottom Copyright/备案信息 */
.text_foot {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #e0e0e0;
}

.text_foot a {
    color: #666;
    text-decoration: none;
}

.text_foot a:hover {
    text-decoration: underline;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-info p {
    margin: 0.5em 0;
    font-size: 0.9em;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
    margin: 0 0.5em;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .header-banner {
        padding: 40px 0;
    }

    .site-title {
        font-size: 2em;
    }

    .menu-menu-1-container {
        font-size: 1.1em;
    }

    .menu {
        gap: 1.5em;
    }

    .about-page-layout {
        gap: 3em;
    }
}

/* 移动设备和平板 (最大768px) */
@media (max-width: 768px) {
    .header-banner {
        padding: 30px 0;
        min-height: auto;
    }

    .header-banner-content {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.5em;
        line-height: 1.2;
    }

    .site-description {
        font-size: 0.85em;
    }

    .menu-menu-1-container {
        padding: 0 15px;
        font-size: 1em;
    }

    .menu {
        flex-direction: column;
        gap: 0;
    }

    .menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu a {
        padding: 0.8em 0;
        font-size: 0.95em;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1.5em;
        margin-top: 0;
        background-color: #f8f9fa;
    }

    .sub-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .sub-menu a {
        color: #666;
        padding: 0.6em 0;
    }

    .content-area {
        padding: 0 15px;
    }

    .site-content {
        padding: 2em 0;
    }

    .entry-title,
    .entry-subtitle {
        display: block;
        margin-right: 0;
        font-size: 1.4em;
    }

    .entry-content {
        font-size: 0.95em;
    }

    .entry-content h2 {
        font-size: 1.5em;
    }

    .entry-content h3 {
        font-size: 1.2em;
    }

    .doctor-portrait {
        max-width: 100%;
    }

    .doctor-portrait img {
        max-width: 100%;
    }

    .about-page-layout {
        flex-direction: column;
        gap: 1.5em;
    }

    .about-sidebar {
        flex: 1;
        min-width: 0;
    }

    .about-sidebar .entry-title {
        margin-bottom: 1em;
        font-size: 1.4em;
    }

    .about-content h2 {
        font-size: 1.3em;
    }

    .about-content h3 {
        font-size: 1.05em;
    }

    .diploma-image img {
        max-width: 80%;
    }

    .plaque-image {
        max-width: 80%;
    }
}

/* 小屏幕手机 (最大480px) */
@media (max-width: 480px) {
    .header-banner {
        padding: 20px 0;
    }

    .site-title {
        font-size: 1.2em;
    }

    .site-description {
        font-size: 0.8em;
    }

    .menu-menu-1-container {
        font-size: 0.95em;
    }

    .menu a {
        font-size: 0.9em;
        padding: 0.7em 0;
    }

    .content-area {
        padding: 0 10px;
    }

    .site-content {
        padding: 1.5em 0;
    }

    .entry-title,
    .entry-subtitle {
        font-size: 1.2em;
    }

    .entry-content {
        font-size: 0.9em;
    }

    .entry-content h2 {
        font-size: 1.3em;
        margin: 1em 0 0.8em 0;
    }

    .entry-content h3 {
        font-size: 1.1em;
        margin: 1.5em 0 0.8em 0;
    }

    .about-sidebar .entry-title {
        font-size: 1.2em;
    }

    .about-content h2 {
        font-size: 1.2em;
    }

    .about-content h3 {
        font-size: 1em;
    }

    .about-content p {
        font-size: 0.95em;
    }

    .diploma-image img {
        max-width: 100%;
    }

    .plaque-image {
        max-width: 100%;
    }

    /* 确保图片在小屏幕上自适应 */
    .entry-content img,
    .about-content img {
        max-width: 100%;
        height: auto;
    }

    /* 表格和列表在小屏幕上的优化 */
    .about-content ul {
        padding-left: 1.2em;
    }

    .about-content ul li {
        margin: 0.5em 0;
        font-size: 0.95em;
    }
}

/* 超小屏幕 (最大360px) */
@media (max-width: 360px) {
    .site-title {
        font-size: 1em;
    }

    .site-description {
        font-size: 0.75em;
    }

    .menu a {
        font-size: 0.85em;
    }

    .entry-title,
    .entry-subtitle {
        font-size: 1.1em;
    }

    .entry-content h2 {
        font-size: 1.2em;
    }

    .entry-content h3 {
        font-size: 1em;
    }
}