/* ==============================================
   中医时辰养生 - GeneratePress 适配样式
   ============================================== */

.tcm-time-display {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
    margin: 24px 0;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.tcm-time-display:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tcm-time-display.modern {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.tcm-time-display.classic {
    background: #f9f9f9;
    border: 1px solid #dcdcdc;
    font-family: Georgia, "Times New Roman", serif;
    color: #222;
}
.tcm-time-display.compact {
    padding: 16px;
    box-shadow: none;
}

/* 头部：标题 + 时间 + 干支 + 时区选择器 */
.tcm-time-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.tcm-time-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #1e73be;
    letter-spacing: 0.3px;
}
.tcm-current-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #666;
}
.current-datetime {
    font-weight: 500;
}
.current-ganzhi {
    background: #f0f6fc;
    padding: 3px 12px;
    border-radius: 3px;
    font-weight: 600;
    color: #1e73be;
    border: 1px solid #d0e1f5;
    white-space: nowrap;
}

/* 时区选择器独占一行（或随内容宽度） */
.tcm-timezone-selector {
    flex-basis: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #555;
}
.tcm-tz-select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-size: inherit;
    min-width: 200px;
}

/* 内容卡片区域 */
.tcm-time-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.tcm-section {
    flex: 1 1 260px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 16px;
    transition: border-color 0.2s, background 0.2s;
}
.tcm-section:hover {
    background: #ffffff;
    border-color: #d0d0d0;
}
.tcm-section h4 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}
.tcm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.tcm-grid div,
.tcm-section p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}
.tcm-section small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 0.85em;
}
.hl {
    background: #e8f0fe;
    color: #1e73be;
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}
.tcm-readmore {
    font-size: 0.9em;
    text-decoration: none;
    color: #1e73be;
    margin-left: 5px;
}
.tcm-readmore:hover {
    text-decoration: underline;
}

/* 加载提示 */
.tcm-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .tcm-time-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tcm-current-time {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    .tcm-time-content {
        flex-direction: column;
    }
    .tcm-time-display {
        padding: 16px;
    }
}

@media print {
    .tcm-time-display {
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff !important;
    }
    .tcm-section {
        break-inside: avoid;
    }
}