/*
Theme Name: dachengge
Theme URI: /
Author: Sai Li
Author URI: /
Description: My first wordpress theme.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dachengge
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* header */
.header{
    display:flex;
    width: 100%;
    height: 80px;
    align-items: center;
    padding: 0 20px;
    /* color:#4a5568; */
    font-weight: 700;
    font-size: 25px;
    /* background-color: #fff; */
    background-color: #4189c3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.6);

}

.header .logo{
    display:flex;
    align-items:center;
    justify-content: flex-end;
    flex-grow: 1;
    overflow: hidden;
}
.header .logo span{
    color:#fff;
    font-size: 25px;
    font-weight: 700;
}

.header .header-menu{
    padding-left: 40px;
    display: flex;
    align-items: center;
    justify-content:flex-start;
    flex-grow: 2;
}

.header-menu .right-memu{
    display: flex;
}
.header .header-menu .right-memu a{
    color: #fff;
    padding-right: 20px;
    font-size: 20px;
}


/* body */
.mianbaoxie_daohang{
    font-size: 14px;
    line-height: 45px;
    padding-left: 15px;
    color: #333;
    width: 100%;
    height: 45px;
    border:1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.6);
}
.main-body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width:100%;
    margin-top: 20px;
}

.main-body-posts , .main-app-content {
    background-color: #fff;
    display: flex;
    width: 100%;
    margin-top:20px;
    /* margin-left: 42px; */
    flex-direction: column;
    border:1px solid #c9c7c7;
    border-radius: 4px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.6);
}

.inxdex-post{
    margin:10px 0 10px 10px;
    /* margin-left: 10px; */
    padding: 10px;
    /* border:1px solid #c9c7c7;
    border-radius: 4px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.6); */
}
.inxdex-post h2{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.index-excerpt p,.post-meta{
    letter-spacing: 1px; /* 可根据需要调整数值 */
    line-height: 1.4; /* 可根据需要调整标题的行间距 */
    color: #999;
}

/* 广告 */
.cps{
        display: block;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 10px 30px;
        box-shadow: 5px 5px 10px #ccc;
        border-radius: 6px;
}


.footer{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    background-color: #fdfafa;
    box-shadow: 2px 2px 5px #ccc;
    margin: 20px 0;
    padding:10px;
    color: #999;
}
.footer a{
    color: #999;
    padding-right: 10px;
}
.lianjie, .banquan{
    margin: 10px;
}

.mobile-footer-nav{
    display: none;
}


/* paipan-form */
.paipan-form{
    width: 100%;
    /* max-width: 1200px; */
    margin:10px auto;
    padding:20px 20px 10px 20px;
    background-color: #fff;
    border:1px solid #c9c7c7;
    border-radius: 4px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.6);

}

.paipan-riqi,.paipan-xingbie,.paipan-cesuan{
    display: flex;
    gap:10px;
    margin-bottom: 20px;
}


.paipan-form label{
    display: block;
    font-size: 16px;
    line-height: 16px;
    max-width:70px;
    color: #333; 
    font-weight: 600;
    font-family: "Arial", sans-serif; /* 字体 */
    padding:10px 0;
}

.paipan-form select{
    flex:1;
    min-width: 60px;
    border:1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 16px;
    color: #333; 
    font-family: "Arial", sans-serif; /* 字体 */
}
.paipan-form select:focus{
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.5);
}

/* 提交按钮样式 */
.paipan-form input[type="submit"] {
    width: 100%;
    font-family: "Arial", sans-serif;  
    font-size: 18px;                  
    background-color: #78a6cb;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.paipan-form input[type="submit"]:hover {
    background-color: #1b79d1;
}

/* app分类 */
.main-body-apps{
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* 允许子元素换行 */
    gap: 10px; /* 子元素之间的间距 */
}

.main-body-apps .cat-app {
    margin:20px 0;
    flex-basis: calc(50% - 5px); /* 每个子元素占据容器宽度的 50%，减去间距的一半 */
    background-color: #fff; /* 背景颜色，可根据需要修改 */
    padding: 20px; /* 内边距，可根据需要修改 */
    box-sizing: border-box; /* 确保内边距不会影响元素的宽度 */
    border:1px solid #d8cece;
    border-radius: 4px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.6);

}
.cat-app-pailie{
    display: flex;
    margin-top:10px;
}



.cat-app a {
    width: 100%; /* 设置图片宽度为父容器的 100% */
    margin: 5px;
    padding:5px;
}

.cat-ap-discri{
    letter-spacing: 1px; /* 可根据需要调整数值 */
    line-height: 1.4; /* 可根据需要调整标题的行间距 */
    color: #999;
    margin: 5px;
    padding:5px;
    max-height: 120px;
}

.main-app-content{
    padding: 20px;
    font-size: 16px;
    letter-spacing: 1px; /* 可根据需要调整数值 */
    line-height: 2; /* 可根据需要调整标题的行间距 */
    
}


#bazi-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#bazi-table th,
#bazi-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#bazi-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#bazi-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#bazi-table tr:hover {
    background-color: #e5e5e5;
}

#bazi-table th[colspan="5"] {
    background-color: #e0e0e0;
}    

/* ------------------------------择吉日----------------------- */
/* 外层div样式 */
.zejiri-form-box {
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

.zejiri-form-box label{
    display: block;
    margin-bottom:8px;
    color:#4a5568;
    /* color是设置的字体颜色 */
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    margin:auto 0;
}

/* 控制label上层div的整体样式 */
.zejiri-shijianfanwei-div{
    display: flex;
    gap:10px;
    margin-bottom:10px;

}

.zejiri-shijianfanwei-label{
    /* flex:1; */
    padding:10px;
    border:1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.zejiri-shijianfanwei-div input[type="radio"] {
    display: none;
}

/* 默认选中30天，只在html里添加了checked */
.zejiri-shijianfanwei-div input[type="radio"]:checked + label {
    background-color: #4189c3; /* 选中背景色 */
    color: white;             /* 文字颜色 */
    border-color: #4299e1;    /* 边框颜色 */
}

/* 选中状态样式  和默认选中是同一个样式 */

/* .zejiri-shijianfanwei-div input[type="radio"]:checked + label  {
    border-color: #4299e1;
    background-color: #0c77cf;
    color:#fff;
} */

/* 选择框样式 */
.zejiri-xuanzekuang select{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234a5568" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 30px;
    transition: border-color 0.3s ease;
    /* 设置select的字体样式，option继承，这是兼容性最好的方式 */
    font-family: "Arial", sans-serif; /* 字体 */
    font-size: 16px;                 /* 字号 */
    color: #333;                     /* 文字颜色 */

}

.zejiri-xuanzekuang  select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* 提交按钮样式 */
.zejiri-tijiao input[type="submit"] {
    width: 100%;
    font-family: "Arial", sans-serif;  
    font-size: 18px;                  
    background-color: #4189c3;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zejiri-tijiao input[type="submit"]:hover {
    background-color: #1b79d1;
}
/* --------------------------择吉日结束------------------- */

/* --------------------------老黄历------------------------ */
.huangli-form-box {
    display: flex;
    flex-direction: column;
    width: 1200px;
    max-width: 100%;
    margin: 10px auto;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    box-sizing: border-box;
}

.huangli-form-box h1 {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-weight: 600;
    font-size: 24px;
}

.huangli-nyr-x {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.huangli-xuanzekuang {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.huangli-xuanzekuang label {
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 400;
    font-size: 16px;
}

.huangli-form-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234a5568" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 30px;
    transition: border-color 0.3s ease;
    font-family: "Arial", sans-serif;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

.hour-info{
    background-color: #5ba2db;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    padding-left: 5px;
}

.zejiri-tijiao {
    display: flex;
}

.zejiri-tijiao input[type="submit"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4299e1;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zejiri-tijiao input[type="submit"]:hover {
    background-color: #1b79d1;
}

/* --------------------------老黄历结束------------------------ */

select#search_item {
    -webkit-appearance: menulist; /* 针对 Safari 和 Chrome */
    -moz-appearance: menulist;    /* 针对 Firefox */
    appearance: menulist;         /* 标准属性 */
    direction: ltr; /* 尝试设置文本方向 */
}


/* 媒体查询 */
@media screen and (max-width:768px){
   .header .header-menu{
        display: none;
    }
    .header .logo{
        display:flex;
        align-items:center;
        justify-content: flex-start;
        flex-grow: 1;
        overflow: hidden;
    }
    .mobile-footer-nav{
        background-color: rgb(170, 94, 66);
        box-shadow: 2px 2px 5px #ccc;
        width: 100%;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content:center;
        flex: 1;
        position: fixed;
        bottom: 0;
        left: 0;
    }
    .mobile-footer-nav .menu{
        display: flex;
        flex: 1;
        align-items: center;
        justify-content:center;
    }
    .mobile-footer-nav .menut{
        display: flex;
        flex: 1;
        align-items: center;
        justify-content:center;
        height: 40px;
        line-height: 60px;
        background-color: #d47e1a;
    }
    .mobile-footer-nav .menu{
        
    }
    .mobile-footer-nav a{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: rgb(248, 248, 248);
        height: 30px;
        line-height: 60px;
    }
   

  
} 