body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f8f5e6;
    color: #4a3a2b;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fffcf5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.footer{
    text-decoration: none; /* 添加这行代码 */
    text-align: center; /* 添加水平居中 */
    line-height: 1.5; /* 可选：调整行高以优化垂直居中效果 */
}
.header{

}

h1 {
    color: #8b6b4d;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0d6c3;
    padding-bottom: 15px;
}

.sutra {
    background: #fff8e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
    color: #6b5d4a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    background: #ffffff;
    border: 1px solid #e0d6c3;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button {
    background: #8b6b4d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: all 0.3s;
}

button:hover {
    background: #6b523c;
    transform: scale(1.05);
}

.txtbutton {
    background: #8b6b4d;
    width: 100px;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: all 0.3s;
    text-decoration: none; /* 添加这行代码 */
    text-align: center; /* 添加水平居中 */
    line-height: 1.5; /* 可选：调整行高以优化垂直居中效果 */
}

.navbutton {
    background: #8b6b4d;
    width: 80px;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    /*font-size: 1.1em;*/
    cursor: pointer;
    /*display: block;*/
    margin: 20px auto;
    transition: all 0.3s;
    text-decoration: none; /* 添加这行代码 */
    text-align: center; /* 添加水平居中 */
    line-height: 1.5; /* 可选：调整行高以优化垂直居中效果 */
}

.nav {

    /*font-size: 1.1em;*/
    cursor: pointer;
    /*display: block;*/
    margin: 20px auto;
    transition: all 0.3s;
    text-decoration: none; /* 添加这行代码 */
    text-align: center; /* 添加水平居中 */
    line-height: 1.5; /* 可选：调整行高以优化垂直居中效果 */
}


.karma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.karma-card {
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.3s;
}

.karma-card:hover {
    transform: translateY(-3px);
}

.effect-name {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
}

.cause-tip {
    color: #666;
    font-size: 0.9em;
}

.karma-result {
    background: #FFF8F0;
    margin: 1rem 0;
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
}

.compound-card {
    background: #FFE4E1;
    border: 2px dashed var(--primary-color);
    padding: 1.5rem;
    margin: 1rem 0;
}

.karma-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
}

.karma-type.善报 {
    background: #98FB98;
}

.karma-type.恶报 {
    background: #FFB6C1;
}

pre {
    white-space: pre-wrap;
    font-family: inherit;
}

button {
    background: #8b6b4d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: all 0.3s;
}
