/* 易掌经主页样式 */

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

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* 为底部导航栏预留空间 */
}

/* 顶部红色背景区域 */
.header-bg {
    background-color: #b1301e;
    color: #fff;
    padding: 20px 16px 30px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* 顶部标题区域 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.weather {
    font-size: 16px;
}

/* 三个主要功能区域 */
.main-features {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon img {
    width: 50px;
    height: 50px;
}

.feature-name {
    color: #fff;
    font-size: 14px;
    padding: 4px 12px;
    background-color: #fff;
    border-radius: 15px;
    color: #333;
}

/* 功能菜单面板 */
.features-panel {
    margin-top: -20px;
    padding: 0 16px;
}

.features-grid {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    padding: 20px 15px;
}

.feature-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-name {
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* 运势详情区域 */
.fortune-detail {
    margin-top: 20px;
    padding: 0 16px;
    background-color: #f5f5f0;
}

/* 运势标题 */
.fortune-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.year-fortune h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 5px;
}

.text-highlight {
    color: #b1301e;
}

.fortune-desc {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.view-btn a {
    padding: 4px 10px;
    background-color: #b1301e;
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
}

/* 运势日历信息 */
.fortune-calendar {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    display: flex;
    position: relative;
    margin-bottom: 20px;
}

.fortune-calendar::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    background-image: url('../images/corner-tl.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.fortune-calendar::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background-image: url('../images/corner-tr.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.calendar-left {
    flex: 0 0 80px;
    border-right: 1px solid #e0e0e0;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-date {
    text-align: center;
    margin-bottom: 10px;
}

.lunar-date {
    font-size: 14px;
    color: #333;
}

.solar-year {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.day-number {
    font-size: 60px;
    font-weight: 500;
    color: #b1301e;
    line-height: 1;
    margin-bottom: 5px;
}

.date-info {
    font-size: 12px;
    color: #777;
}

.calendar-right {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yi-ji-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yi-item, .ji-item {
    display: flex;
    align-items: flex-start;
}

.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; /* 红色 */
}

.yi-content, .ji-content {
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
}

/* 功能按钮区域 */
.function-buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    color: #777;
    font-size: 18px;
}

.btn-name {
    font-size: 12px;
    color: #333;
}


/* 响应式调整 */
@media screen and (max-width: 375px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon img {
        width: 40px;
        height: 40px;
    }
    
    .grid-name, .btn-name {
        font-size: 11px;
    }
} 
/* index  */
.card-curve {
    display: none;
}
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.fortune-detail {
    background-color: #fff;
    border-radius: 16px;
    margin:16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.calendar-card {
    background-color: #fcfbf6;
    border: 1px solid #e5e1d8;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    position: relative;
}
.calendar-card::before,
.calendar-card::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-image: url("images/corner-flower.svg");
    background-size: contain;
}
.calendar-card::before {
    top: 8px;
    left: 8px;
}
.calendar-card::after {
    bottom: 8px;
    right: 8px;
    transform: rotate(180deg);
}
.day-number {
    font-size: 48px;
    color: #A8432D;
    font-weight: bold;
    line-height: 1;
}
.function-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btn-icon {
    width: 48px;
    height: 48px;
    background-color: #f9f6f2;
    border: 1px solid #e5e1d8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A8432D;
    font-size: 20px;
    margin-bottom: 6px;
}
.bottom-nav {
    background-color: #fff;
    border-top: 1px solid #e5e1d8;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #757575;
}
.nav-item.active {
    color: #A8432D;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.ji-mark, .yi-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
}
 /* 本地图标样式 */
 .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.icon-home {
    background-image: url('__CDN__/assets/addons/paipan/img/icon-home.svg');
}
.icon-records {
    background-image: url('__CDN__/assets/addons/paipan/img/icon-records.svg');
}
.icon-academy {
    background-image: url('__CDN__/assets/addons/paipan/img/icon-academy.svg');
}
.icon-user {
    background-image: url('__CDN__/assets/addons/paipan/img/icon-user.svg');
}

/* 时辰吉凶表样式 */
.shichen-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 20px;
}

.shichen-table td {
    text-align: center;
    padding: 6px 2px;
    font-size: 12px;
}

.shichen-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    font-size: 12px;
    margin: 0 auto;
}

/* 吉凶等级样式 */
.shichen-icon.great-luck {
    background-color: #FF5722;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

.shichen-icon.good-luck {
    background-color: #FF9800;
    color: white;
}

.shichen-icon.small-luck {
    background-color: #f39c12;
    color: white;
}

.shichen-icon.neutral {
    background-color: #9E9E9E;
    color: white;
}

.shichen-icon.small-bad {
    background-color: #607D8B;
    color: white;
}

.shichen-icon.bad {
    background-color: #3F51B5;
    color: white;
}

.shichen-icon.great-bad {
    background-color: #673AB7;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(103, 58, 183, 0.5);
}

/* 添加鼠标悬停效果 */
.shichen-icon[title] {
    cursor: help;
    position: relative;
    transition: transform 0.2s;
}

.shichen-icon[title]:hover {
    transform: scale(1.1);
}

/* 当前时辰吉凶详情样式 */
.current-shichen {
    background-color: #f9f6f2;
    border: 1px solid #e5e1d8;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.current-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e5e1d8;
    padding-bottom: 8px;
}

.current-status {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.status-value {
    font-size: 16px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
}

.status-value.great-luck {
    background-color: #FF5722;
}

.status-value.good-luck {
    background-color: #FF9800;
}

.status-value.small-luck {
    background-color: #FFC107;
    color: #333;
}

.status-value.neutral {
    background-color: #9E9E9E;
}

.status-value.small-bad {
    background-color: #607D8B;
}

.status-value.bad {
    background-color: #3F51B5;
}

.status-value.great-bad {
    background-color: #673AB7;
}

.score-value {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.current-explanation {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #A8432D;
}