
/* =========================================================
   1. General Logo & Menu Styling (导航栏与Logo)
========================================================= */
#logo {
    -webkit-transform: initial !important;
    max-height: 90%;
}

#top-menu-nav #top-menu a:hover,
#mobile_menu_slide a:hover,
.mobile_menu_bar:before,
.mobile_menu_bar:after,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a {
    color: #7e6849 !important; /* 品牌棕色 */
    opacity: 1 !important;
}

/* =========================================================
   2. Drop-down Menu Width and Padding (下拉菜单)
========================================================= */
@media (min-width: 981px) {
    .sub-menu {
        min-width: 300px;
    }

    #top-menu li li a {
        width: 260px;
        padding: 4px 12px;
    }
}

#et-top-navigation ul.sub-menu {
    width: 300px !important;
}

#et-top-navigation ul.sub-menu li,
#et-top-navigation ul.sub-menu li a {
    width: 100% !important;
}

#et-top-navigation .menu-item-has-children ul.sub-menu ul {
    position: absolute;
    left: 300px !important;
}

#et-top-navigation .menu-item-has-children.et-reverse-direction-nav ul.sub-menu ul {
    left: auto !important;
    right: 300px !important;
}

/* =========================================================
   3. Mobile Menu and Contact Form Styling (手机菜单与表单)
========================================================= */
.et_mobile_menu {
    border-top: 1px solid #fff !important;
}

.wpcf7-submit {
    padding: 13px 40px !important;
    background: #7e6849 !important;
    color: #fff !important;
    border: 1px solid #e02b20 !important;
    cursor: pointer;
}

.wpcf7-submit:hover {
    background: #fff !important;
    color: #7e6849 !important;
}

/* =========================================================
   4. Layout Helpers & Responsive Columns (布局辅助)
========================================================= */
.outer {
    margin: 0 -10px;
}

.inner {
    padding: 0 10px;
}

.onethird {
    width: 33.3333%;
    float: left !important;
}

.cf7part {
    float: left;
    margin-bottom: 20px;
}

.nodisplay {
    display: none !important;
}

@media (max-width: 640px) {
    .onethird {
        width: 100% !important;
    }
}

/* =========================================================
   5. Headings Base (基础标题字体)
========================================================= */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.5px;
    line-height: 1.3;
}
/* 这里只定义大小，间距交给下面的第9部分控制 */
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* =========================================================
   6. Post Content Images (Class: my-blog-images)
   功能：强制图片居中、自适应，兼容经典编辑器与古腾堡
========================================================= */
.my-blog-images img {
    max-width: 80%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px;
    float: none !important; 
    box-shadow: none; 
}

.my-blog-images .wp-caption {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    max-width: 80%;
    margin-bottom: 30px;
    float: none !important;
}

.my-blog-images figure.wp-block-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px auto;
    max-width: 80%;
}

.my-blog-images figcaption, 
.my-blog-images .wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #777777;
    margin-top: -20px;
    margin-bottom: 30px;
    padding-top: 5px;
}

/* =========================================================
   7. Fully Responsive Table Styling (Fix V2 - 宽度修复版)
   功能：电脑端强制全宽，手机端允许滚动
========================================================= */
.et_pb_post_content table {
    display: table !important; 
    width: 100% !important;     
    max-width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0 !important;
    background-color: #fff;
    table-layout: auto;
}

.et_pb_post_content table td,
.et_pb_post_content table th {
    border: 1px solid #e0e0e0 !important;
    padding: 12px 15px !important;
    color: #333;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.5;
}

.et_pb_post_content table thead,
.et_pb_post_content table thead tr,
.et_pb_post_content table thead th,
.et_pb_post_content table thead td {
    background-color: #7e6849 !important; 
    color: #ffffff !important;            
    border-color: #8f7855 !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.et_pb_post_content table tbody tr:nth-child(even) {
    background-color: #f9f9f9 !important;
}
.et_pb_post_content table tbody tr:hover {
    background-color: #f0f0f0 !important;
}

@media (max-width: 768px) {
    .et_pb_post_content table {
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    .et_pb_post_content table td,
    .et_pb_post_content table th {
        padding: 10px !important;
        white-space: normal;
        min-width: 120px;
    }
}

.et_pb_post_content table::-webkit-scrollbar {
    height: 8px;
    background-color: #f5f5f5;
}
.et_pb_post_content table::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

/* =========================================================
   8. Iframe Styling
========================================================= */
iframe {
    max-width: 100% !important;
}

/* =========================================================
   9. Typography & Spacing (NEW - 优化阅读体验)
   功能：增加段落间距、行高、标题留白
========================================================= */

/* 9.1 段落优化 (Paragraphs) */
.et_pb_post_content p {
    margin-bottom: 15px !important; /* 关键：每段话底部增加28px间距 */
    line-height: 1.7 !important;    /* 关键：增加行间距，让文字不拥挤 */
    font-size: 17px;                /* 稍微加大一点字体，提高现代感 */
                       /* 确保文字颜色足够深，易读 */
}

/* 9.2 列表优化 (Lists) */
.et_pb_post_content ul,
.et_pb_post_content ol {
    margin-bottom: 15px !important;
    line-height: 1.7 !important;
    padding-left: 25px !important;  /* 确保列表缩进 */
}

.et_pb_post_content li {
    margin-bottom: 12px !important; /* 列表项之间也增加一点间距 */
}

/* 9.3 文章内标题优化 (Headings) */
/* 让标题上方留出更多空白，区分上下文 */
.et_pb_post_content h2, 
.et_pb_post_content h3, 
.et_pb_post_content h4 {
    margin-top: 15px !important;    /* 标题上方留白很大 */
    margin-bottom: 15px !important; /* 标题下方留白适中 */
    font-weight: 700;
   
}

/* 针对第一个元素，去掉上边距，防止文章开头空白太大 */
.et_pb_post_content > :first-child {
    margin-top: 0 !important;
}

.et_pb_image img {
    aspect-ratio: attr(width) / attr(height);
}

/* CLS修复: Divi Pixel 标签图片无尺寸属性，预留空间 */
.dipi-at-panel-image {
    aspect-ratio: 1 / 1;
    min-height: 200px;
    object-fit: cover;
}

/* CLS修复: 移动端禁用动画，防止布局偏移 */
@media (max-width: 767px) {
    .et_pb_animation_top,
    .et_pb_animation_bottom,
    .et_pb_animation_left,
    .et_pb_animation_right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}
/* =========================================================
   1. General Logo & Menu Styling (导航栏与Logo)
========================================================= */
#logo {
    -webkit-transform: initial !important;
    max-height: 90%;
}

#top-menu-nav #top-menu a:hover,
#mobile_menu_slide a:hover,
.mobile_menu_bar:before,
.mobile_menu_bar:after,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a {
    color: #7e6849 !important; /* 品牌棕色 */
    opacity: 1 !important;
}

/* =========================================================
   2. Drop-down Menu Width and Padding (下拉菜单)
========================================================= */
@media (min-width: 981px) {
    .sub-menu {
        min-width: 300px;
    }

    #top-menu li li a {
        width: 260px;
        padding: 4px 12px;
    }
}

#et-top-navigation ul.sub-menu {
    width: 300px !important;
}

#et-top-navigation ul.sub-menu li,
#et-top-navigation ul.sub-menu li a {
    width: 100% !important;
}

#et-top-navigation .menu-item-has-children ul.sub-menu ul {
    position: absolute;
    left: 300px !important;
}

#et-top-navigation .menu-item-has-children.et-reverse-direction-nav ul.sub-menu ul {
    left: auto !important;
    right: 300px !important;
}

/* =========================================================
   3. Mobile Menu and Contact Form Styling (手机菜单与表单)
========================================================= */
.et_mobile_menu {
    border-top: 1px solid #fff !important;
}

.wpcf7-submit {
    padding: 13px 40px !important;
    background: #7e6849 !important;
    color: #fff !important;
    border: 1px solid #e02b20 !important;
    cursor: pointer;
}

.wpcf7-submit:hover {
    background: #fff !important;
    color: #7e6849 !important;
}

/* =========================================================
   4. Layout Helpers & Responsive Columns (布局辅助)
========================================================= */
.outer {
    margin: 0 -10px;
}

.inner {
    padding: 0 10px;
}

.onethird {
    width: 33.3333%;
    float: left !important;
}

.cf7part {
    float: left;
    margin-bottom: 20px;
}

.nodisplay {
    display: none !important;
}

@media (max-width: 640px) {
    .onethird {
        width: 100% !important;
    }
}

/* =========================================================
   5. Headings Base (基础标题字体)
========================================================= */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.5px;
    line-height: 1.3;
}
/* 这里只定义大小，间距交给下面的第9部分控制 */
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* =========================================================
   6. Post Content Images (Class: my-blog-images)
   功能：强制图片居中、自适应，兼容经典编辑器与古腾堡
========================================================= */
.my-blog-images img {
    max-width: 80%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px;
    float: none !important; 
    box-shadow: none; 
}

.my-blog-images .wp-caption {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    max-width: 80%;
    margin-bottom: 30px;
    float: none !important;
}

.my-blog-images figure.wp-block-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px auto;
    max-width: 80%;
}

.my-blog-images figcaption, 
.my-blog-images .wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #777777;
    margin-top: -20px;
    margin-bottom: 30px;
    padding-top: 5px;
}

/* =========================================================
   7. Fully Responsive Table Styling (Fix V2 - 宽度修复版)
   功能：电脑端强制全宽，手机端允许滚动
========================================================= */
.et_pb_post_content table {
    display: table !important; 
    width: 100% !important;     
    max-width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0 !important;
    background-color: #fff;
    table-layout: auto;
}

.et_pb_post_content table td,
.et_pb_post_content table th {
    border: 1px solid #e0e0e0 !important;
    padding: 12px 15px !important;
    color: #333;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.5;
}

.et_pb_post_content table thead,
.et_pb_post_content table thead tr,
.et_pb_post_content table thead th,
.et_pb_post_content table thead td {
    background-color: #7e6849 !important; 
    color: #ffffff !important;            
    border-color: #8f7855 !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.et_pb_post_content table tbody tr:nth-child(even) {
    background-color: #f9f9f9 !important;
}
.et_pb_post_content table tbody tr:hover {
    background-color: #f0f0f0 !important;
}

@media (max-width: 768px) {
    .et_pb_post_content table {
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    .et_pb_post_content table td,
    .et_pb_post_content table th {
        padding: 10px !important;
        white-space: normal;
        min-width: 120px;
    }
}

.et_pb_post_content table::-webkit-scrollbar {
    height: 8px;
    background-color: #f5f5f5;
}
.et_pb_post_content table::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

/* =========================================================
   8. Iframe Styling
========================================================= */
iframe {
    max-width: 100% !important;
}

/* =========================================================
   9. Typography & Spacing (NEW - 优化阅读体验)
   功能：增加段落间距、行高、标题留白
========================================================= */

/* 9.1 段落优化 (Paragraphs) */
.et_pb_post_content p {
    margin-bottom: 15px !important; /* 关键：每段话底部增加28px间距 */
    line-height: 1.7 !important;    /* 关键：增加行间距，让文字不拥挤 */
    font-size: 17px;                /* 稍微加大一点字体，提高现代感 */
                       /* 确保文字颜色足够深，易读 */
}

/* 9.2 列表优化 (Lists) */
.et_pb_post_content ul,
.et_pb_post_content ol {
    margin-bottom: 15px !important;
    line-height: 1.7 !important;
    padding-left: 25px !important;  /* 确保列表缩进 */
}

.et_pb_post_content li {
    margin-bottom: 12px !important; /* 列表项之间也增加一点间距 */
}

/* 9.3 文章内标题优化 (Headings) */
/* 让标题上方留出更多空白，区分上下文 */
.et_pb_post_content h2, 
.et_pb_post_content h3, 
.et_pb_post_content h4 {
    margin-top: 15px !important;    /* 标题上方留白很大 */
    margin-bottom: 15px !important; /* 标题下方留白适中 */
    font-weight: 700;
   
}

/* 针对第一个元素，去掉上边距，防止文章开头空白太大 */
.et_pb_post_content > :first-child {
    margin-top: 0 !important;
}

.et_pb_image img {
    aspect-ratio: attr(width) / attr(height);
}

/* CLS修复: Divi Pixel 标签图片无尺寸属性，预留空间 */
.dipi-at-panel-image {
    aspect-ratio: 1 / 1;
    min-height: 200px;
    object-fit: cover;
}

/* CLS修复: 移动端禁用动画，防止布局偏移 */
@media (max-width: 767px) {
    .et_pb_animation_top,
    .et_pb_animation_bottom,
    .et_pb_animation_left,
    .et_pb_animation_right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

