/* 时辰对照表样式 */

/* 章节标题 */
.section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* 当前时辰显示区域 */
.current-time-section {
    margin-bottom: 40px;
}

.current-time-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.time-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
}

.current-datetime {
    flex: 1;
}

.date-display {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.time-display {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.time-period-display {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.period-icon {
    font-size: 5rem;
    line-height: 1;
}

.period-info {
    flex: 1;
}

.period-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.period-time {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.period-desc {
    font-size: 1rem;
    opacity: 0.8;
}

.time-details {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    min-width: 100px;
    opacity: 0.9;
}

.detail-value {
    flex: 1;
    opacity: 0.95;
}

/* 时辰对照表 */
.time-table-section {
    margin-bottom: 40px;
}

.time-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.time-table thead {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.time-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.time-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.time-table tbody tr:hover {
    background-color: #f9fafb;
}

.time-table tbody tr.current-period {
    background: linear-gradient(90deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    font-weight: 600;
}

.time-table td {
    padding: 15px;
}

.time-table .zodiac-icon {
    font-size: 1.5rem;
    margin-right: 5px;
}

/* 时间单位换算 */
.converter-section {
    margin-bottom: 40px;
}

.converter-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.converter-info {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 12px;
    color: white;
}

.converter-info p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.conversion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.conversion-list li {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 3px solid rgba(255,255,255,0.3);
}

.converter-tool {
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
}

.converter-input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.converter-input-group label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.converter-input {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.converter-select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.3s ease;
}

.converter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.converter-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid var(--primary-color);
}

.converter-result h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#result-content {
    line-height: 1.8;
}

#result-content p {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* 十二时辰详解 */
.period-detail-section {
    margin-bottom: 40px;
}

.period-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.period-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.period-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.period-card-icon {
    font-size: 2.5rem;
}

.period-card-title {
    flex: 1;
}

.period-card-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.period-card-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.period-card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.period-card-content p {
    margin: 10px 0;
}

.period-card-content strong {
    color: var(--text-primary);
    display: block;
    margin-top: 10px;
}

/* 养生建议 */
.health-section {
    margin-bottom: 40px;
}

/* 工具预览图片 */
.tool-preview-section {
    margin-bottom: 40px;
}

.preview-image-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.preview-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.preview-caption {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

.health-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.health-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.health-card:hover {
    transform: translateY(-3px);
}

.health-card:nth-child(1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.health-card:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.health-card:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.health-card:nth-child(4) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: white; }
.health-card:nth-child(5) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: white; }
.health-card:nth-child(6) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: white; }
.health-card:nth-child(7) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: white; }
.health-card:nth-child(8) { background: linear-gradient(135deg, #d299c2 0%, #fef9d3 100%); color: white; }
.health-card:nth-child(9) { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: white; }
.health-card:nth-child(10) { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color: white; }
.health-card:nth-child(11) { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); color: white; }
.health-card:nth-child(12) { background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%); color: white; }

.health-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.health-card-body {
    line-height: 1.6;
}

.health-card-body p {
    margin: 8px 0;
    opacity: 0.95;
}

.health-card-body strong {
    display: block;
    margin-top: 10px;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .time-main {
        flex-direction: column;
        gap: 20px;
    }

    .time-display {
        font-size: 2rem;
    }

    .period-icon {
        font-size: 3rem;
    }

    .period-name {
        font-size: 1.8rem;
    }

    .time-table {
        font-size: 0.9rem;
    }

    .time-table th,
    .time-table td {
        padding: 10px 8px;
    }

    .converter-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .converter-input-group label {
        min-width: auto;
    }

    .period-details-grid {
        grid-template-columns: 1fr;
    }

    .health-tips-grid {
        grid-template-columns: 1fr;
    }

    .conversion-list {
        grid-template-columns: 1fr;
    }

    .preview-image-container {
        padding: 20px;
    }

    .preview-caption {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .current-time-display {
        padding: 20px;
    }

    .time-period-display {
        flex-direction: column;
        text-align: center;
    }

    .period-card-header {
        flex-direction: column;
        text-align: center;
    }

    .time-table th,
    .time-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
}
