/* 易掌经应用通用样式 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAF8F3;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 主容器 */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* 红色顶部导航栏 */
.red-navbar {
    background-color: #b1301e;
    color: white;
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-back {
    color: white;
    margin-right: 20px;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.nav-more {
    color: white;
    margin-left: 20px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.nav-icon {
 
    margin-top: 2px;
    font-size: 20px;
    color: #777;
}

.nav-name {
    font-size: 12px;
    color: #777;
}

.nav-item.active .nav-icon,
.nav-item.active .nav-name {
    color: #b1301e;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.card-content {
    padding: 5px;
}

.card-footer {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #b1301e;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #b1301e;
    color: #b1301e;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-full {
    display: block;
    width: 100%;
}

/* 表单元素 */
.form-group {
    /* margin-bottom: 16px; */
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #b1301e;
    outline: none;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-primary {
    color: #b1301e;
}

.text-secondary {
    color: #777;
}

.text-success {
    color: #43793e;
}

.text-danger {
    color: #e74c3c;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

/* 提示和标记 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #b1301e;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
}

.badge-success {
    background-color: #43793e;
}

.divider {
    height: 1px;
    background-color: #f0f0f0;

}

/* 宜忌标记通用样式 */
.yi-mark, .ji-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #fff;
    margin-right: 8px;
    flex-shrink: 0;
}

.yi-mark {
    background-color: #43793e; /* 绿色 */
}

.ji-mark {
    background-color: #b1301e; /* 红色 */
}

/* 响应式调整 */
@media screen and (max-width: 375px) {
    .main-content {
        padding: 12px;
    }
    
    .card-header, .card-content, .card-footer {
        padding: 12px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }
} 

 /* 登录提示样式 */
 .login-notice {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-notice .notice-text {
    color: #d97706;
    font-size: 14px;
}
.login-notice .login-btn {
    background-color: #c0392b;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}