/* 60甲子页面样式 - 清爽简洁风格 */

/* 列表页样式 */
.jiazi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 3.5em;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.tiangan-group {
    margin-bottom: 48px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
}

.tiangan-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tiangan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tiangan-text {
    flex: 1;
}

.jiazi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.jiazi-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    color: #1a1a1a;
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jiazi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.jiazi-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.jiazi-item:hover::before {
    transform: scaleX(1);
}

.jiazi-name {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

.jiazi-index {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

.jiazi-status {
    font-size: 0.75em;
    margin-top: 4px;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.jiazi-status.has-data {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 详情页样式 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    gap: 10px;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.detail-header h1 {
    font-size: 3.5em;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.detail-header .meta {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 400;
}

.detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
    margin-bottom: 40px;
}

.info-section {
    margin-bottom: 32px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.info-item {
    margin-bottom: 16px;
}

.info-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.info-value {
    color: #333;
    line-height: 1.8;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 0.95em;
}

.log-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.log-level.excellent {
    background: #4CAF50;
    color: #fff;
}

.log-level.good {
    background: #2196F3;
    color: #fff;
}

.log-level.normal {
    background: #FF9800;
    color: #fff;
}

.log-level.poor {
    background: #F44336;
    color: #fff;
}

.no-data {
    text-align: center;
    padding: 60px 40px;
    color: #999;
}

.no-data-icon {
    font-size: 3.5em;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .jiazi-container {
        padding: 32px 16px 60px;
    }

    .page-header {
        margin-bottom: 48px;
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 2.5em;
    }

    .tiangan-group {
        padding: 24px 20px;
        margin-bottom: 32px;
    }

    .tiangan-title {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    .tiangan-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .jiazi-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .jiazi-item {
        padding: 20px 12px;
    }

    .jiazi-name {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2em;
    }

    .jiazi-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .jiazi-item {
        padding: 16px 10px;
    }

    .jiazi-name {
        font-size: 1.4em;
    }

    .detail-header {
        padding: 32px 24px;
    }

    .detail-header h1 {
        font-size: 2.5em;
    }

    .detail-content {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .jiazi-container {
        padding: 24px 12px 40px;
    }

    .page-header {
        padding: 32px 0 24px;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .tiangan-group {
        padding: 20px 16px;
    }

    .tiangan-title {
        font-size: 1.2em;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .jiazi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .jiazi-item {
        padding: 14px 8px;
    }

    .jiazi-name {
        font-size: 1.3em;
    }

    .jiazi-index {
        font-size: 0.75em;
    }

    .jiazi-status {
        font-size: 0.7em;
        padding: 3px 8px;
    }
}

/* 介绍部分 */
.intro-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    background: #ffffff;
    border-radius: 20px;
    padding: 56px 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.intro-content {
    margin-bottom: 48px;
}

.intro-title {
    font-size: 2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
}

.intro-text {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* 基本概念 */
.concept-section {
    margin: 48px 0;
}

.concept-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
    text-align: center;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.concept-card {
    background: #fafbfc;
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: all 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.concept-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.concept-card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.concept-card-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.concept-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.concept-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.concept-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

/* 循环规律 */
.cycle-section {
    margin-top: 48px;
}

.cycle-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
    text-align: center;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.cycle-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cycle-card-full {
    grid-column: 1 / -1;
}

.cycle-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cycle-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cycle-header-text h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cycle-subtitle {
    font-size: 0.85em;
    color: #888;
}

.cycle-desc {
    font-size: 0.95em;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
}

.cycle-example {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.cycle-example strong {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
}

.cycle-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cycle-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85em;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* 纳音表 */
.nayin-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    background: #ffffff;
    border-radius: 20px;
    padding: 56px 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
    text-align: center;
}

.nayin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.nayin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.9899em;
}

.nayin-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nayin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.95em;
}

.nayin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.nayin-table tbody tr:hover {
    background: #fafbfc;
}

.nayin-table tbody tr:last-child td {
    border-bottom: none;
}

.nayin-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    color: #333;
}

.wuxing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.classical-desc {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
}

/* 空亡查询 */
.kongwang-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    background: #ffffff;
    border-radius: 20px;
    padding: 56px 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kongwang-theory {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f0f0f0;
}

.kongwang-theory-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

.kongwang-theory-desc {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    margin-bottom: 24px;
}

.kongwang-rule {
    background: #fff5f5;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #ef4444;
}

.kongwang-rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.kongwang-rule-icon {
    font-size: 1.5em;
}

.kongwang-rule-header h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #b91c1c;
    margin: 0;
}

.kongwang-rule-desc {
    font-size: 0.95em;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

.kongwang-query {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.kongwang-xun-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kongwang-xun-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.kongwang-xun-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kongwang-xun-info {
    flex: 1;
}

.kongwang-xun-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.kongwang-xun-subtitle {
    font-size: 0.9em;
    color: #888;
    margin: 0;
}

.kongwang-xun-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kongwang-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.kongwang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.kongwang-xun-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.kongwang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #fafbfc;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.kongwang-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border-color: #d0d0d0;
}

.kongwang-item-no {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 6px;
}

.kongwang-item-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
}

/* 响应式 */
@media (max-width: 968px) {
    .intro-section,
    .nayin-section,
    .kongwang-section {
        padding: 40px 32px;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }

    .cycle-grid {
        grid-template-columns: 1fr;
    }

    .nayin-table-wrapper {
        overflow-x: scroll;
    }

    .kongwang-xun-header {
        flex-wrap: wrap;
    }

    .kongwang-xun-empty {
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .intro-section,
    .nayin-section,
    .kongwang-section {
        padding: 32px 24px;
    }

    .intro-title,
    .section-title {
        font-size: 1.6em;
    }

    .concept-card {
        padding: 24px 20px;
    }

    .cycle-card {
        padding: 24px 20px;
    }

    .kongwang-xun-card {
        padding: 24px 20px;
    }

    .kongwang-xun-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .intro-section,
    .nayin-section,
    .kongwang-section {
        padding: 24px 16px;
    }

    .intro-title,
    .section-title {
        font-size: 1.4em;
    }

    .nayin-table {
        font-size: 0.8em;
    }

    .nayin-table th,
    .nayin-table td {
        padding: 10px 8px;
    }

    .kongwang-xun-items {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .kongwang-item {
        padding: 12px 8px;
    }

    .kongwang-item-name {
        font-size: 1em;
    }
}