/* 日历视图样式增强 */
.sec-calendar-view {
    margin-top: 20px;
}

.sec-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.sec-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sec-calendar-month-title {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.sec-calendar-nav {
    display: flex;
    gap: 8px;
}

.sec-calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
}

.sec-calendar-day-name {
    text-align: center;
    font-weight: bold;
    padding: 10px 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #7f8c8d;
}

.sec-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.sec-calendar-day {
    min-height: 100px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    padding: 8px;
    position: relative;
    transition: background-color 0.2s;
}

.sec-calendar-day:hover {
    background-color: #f8f9fa;
}

.sec-calendar-day.today {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.sec-calendar-day.other-month {
    background-color: #f9f9f9;
    opacity: 0.6;
}

.sec-calendar-day-number {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.sec-calendar-events {
    margin-top: 5px;
}

.sec-calendar-event {
    font-size: 0.85rem;
    padding: 3px 5px;
    margin-bottom: 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s;
}

.sec-calendar-event:hover {
    white-space: normal;
    z-index: 10;
    position: relative;
}

/* 不同事件类型的颜色 */
.sec-calendar-event.type-eclipse {
    background-color: #e1f5fe;
    border-left: 3px solid #03a9f4;
}

.sec-calendar-event.type-meteor {
    background-color: #fce4ec;
    border-left: 3px solid #e91e63;
}

.sec-calendar-event.type-planet {
    background-color: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.sec-calendar-events-more {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: center;
    padding: 2px 0;
}

.sec-calendar-day.has-events {
    border-color: #90caf9;
}

/* 模态框样式美化 */
.sec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec-modal.show {
    opacity: 1;
}

.sec-modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.sec-modal.show .sec-modal-content {
    transform: translateY(0);
}

.sec-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sec-modal-title {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
}

.sec-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.2s;
    padding: 0 10px;
}

.sec-modal-close:hover {
    color: #e74c3c;
}

.sec-modal-body {
    padding: 20px;
}

.sec-modal-date {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 0.95rem;
}

.sec-modal-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.sec-modal-meta {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.sec-modal-meta-item {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.sec-modal-meta-label {
    font-weight: bold;
    min-width: 120px;
    color: #2c3e50;
}

.sec-modal-meta-value {
    flex: 1;
}

.sec-modal-link {
    color: #2196f3;
    text-decoration: none;
}

.sec-modal-link:hover {
    text-decoration: underline;
}

.sec-modal-loader {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
}

.sec-modal-loader i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.sec-modal-error {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
}

.sec-modal-error i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: #e67e22;
}

.sec-modal-close-btn {
    margin-top: 15px;
}

.sec-modal-open {
    overflow: hidden;
}

/* 列表视图样式调整（移除图片后） */
.sec-list {
    display: grid;
    gap: 15px;
}

.sec-event {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.sec-event:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sec-event-content {
    padding: 15px;
}

.sec-event-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sec-event-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.sec-event-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.sec-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.sec-event-type, .sec-event-location {
    display: flex;
    align-items: center;
}

.sec-event-type i, .sec-event-location i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}
/* 控制按钮区域整体样式调整 */
.sec-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap; /* 适配小屏幕 */
    gap: 10px; /* 元素间距 */
}

/* 视图切换按钮样式 */
.sec-view-toggle {
    display: flex;
    gap: 8px;
}

.sec-view-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
}

.sec-view-btn.active {
    background-color: #007cba;
    color: white;
    border-color: #006ba1;
}

.sec-view-btn:hover:not(.active) {
    background-color: #e9ecef;
    border-color: #ccc;
}

/* 刷新按钮样式优化 - 缩小尺寸并调整位置 */
#sec-refresh-btn {
    padding: 6px 12px; /* 缩小内边距 */
    font-size: 0.9rem; /* 缩小字体 */
    display: flex;
    align-items: center;
    gap: 5px; /* 图标与文字间距 */
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap; /* 防止按钮文字换行 */
}

#sec-refresh-btn:hover {
    background-color: #218838;
}

#sec-refresh-btn.loading {
    background-color: #6c757d;
    cursor: wait;
}

#sec-refresh-btn i {
    font-size: 1rem; /* 图标大小调整 */
}

/* 日历导航按钮样式统一 */
.sec-calendar-nav .sec-btn {
    padding: 4px 10px;
    font-size: 0.9rem;
}

/* 响应式调整 - 在小屏幕上按钮垂直排列 */
@media (max-width: 768px) {
    .sec-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sec-view-toggle {
        justify-content: center;
        width: 100%;
    }
    
    #sec-refresh-btn {
        width: 100%;
        justify-content: center;
    }
}
