
/*
 Theme Name:   Twenty Twenty-Four Child
 Theme URI:    http://example.com/twentytwentyfour-child/
 Description:  Twenty Twenty-Four Child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     twentytwentyfour
 Version:      1.1.0
 Text Domain:  twentytwentyfour-child
*/

/* 在这里添加你的自定义CSS */

/* 三个主页面的布局 */
@import url('unified-styles.css');
/* end */

/*这是不跟随屏幕变化而隐藏菜单的布局*/
/* 隐藏汉堡菜单按钮（☰）和关闭按钮（✕） */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    display: none !important;
}

/* 强制导航菜单始终显示（移动端不折叠） */
.wp-block-navigation__responsive-container {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 确保菜单项横向排列（防止堆叠） */
.wp-block-navigation__responsive-container .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 小屏幕下横向滚动（防止换行） */
@media (max-width: 600px) {
    .wp-block-navigation__responsive-container .wp-block-navigation__container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* end */


/* 悬浮邮箱按钮 */
/* 悬浮邮件按钮 - 专业版 */
.floating-email-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* 更专业的蓝色渐变 */
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-email-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-email-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.floating-email-btn:hover::after {
    opacity: 1;
}

.floating-email-btn .dashicons {
    font-size: 28px;
    width: auto;
    height: auto;
    transition: transform 0.3s;
}

.floating-email-btn:hover .dashicons {
    transform: scale(1.1);
}

.floating-email-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-email-btn:hover .tooltip-text {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-email-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .floating-email-btn .dashicons {
        font-size: 24px;
    }
}
/* end */


/* 悬浮WhatsApp按钮 - 专业版 */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* 更专业的蓝色渐变 */
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-whatsapp-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.floating-whatsapp-btn:hover::after {
    opacity: 1;
}

.floating-whatsapp-btn .dashicons {
    font-size: 28px;
    width: auto;
    height: auto;
    transition: transform 0.3s;
}

.floating-whatsapp-btn:hover .dashicons {
    transform: scale(1.1);
}

.floating-whatsapp-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-whatsapp-btn:hover .tooltip-text {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }
    .floating-whatsapp-btn .dashicons {
        font-size: 24px;
    }
}
/* end */

/* 文章列表样式 */
.all-posts-list {
    margin: 30px 0;
}

.post-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 20px;
}

.post-item h2 {
    margin-top: 0;
    font-size: 1.4em;
}

.post-meta {
    color: #000000;
    font-size: 0.8em;
    opacity: 0.8;
    margin: 5px 0 10px;
}

.post-excerpt {
    line-height: 1.6;
}

/* 分页样式 */
.posts-pagination {
    text-align: center;
    margin-top: 40px;
}

.posts-pagination a,
.posts-pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid rgba(255,255,255,0.3);
    color: inherit;
    text-decoration: none;
}

.posts-pagination a:hover {
    background: rgba(255,255,255,0.1);
}

.posts-pagination .current {
    background: rgba(255,255,255,0.2);
    font-weight: bold;
}

/* 底部联系信息样式 */
/* 基础联系人样式 */
#contact-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-description {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.contact-buttons a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email {
    background-color: #3498db;
    color: white;
}

.contact-phone {
    background-color: #2ecc71;
    color: white;
}

/* 特定语言样式 */
.contact-zh .contact-title {
    font-weight: 700;
}

.contact-ja .contact-description {
    font-size: 0.9em;
}
