/* 十神页面样式 - 简洁清爽的国外网站风格 */

/* 列表页样式 */
.shishen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.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;
}

/* 介绍区域 */
.intro-section {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
   
}

.intro-content {
    text-align: left;
}

.intro-title {
    font-size: 2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.intro-text {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.intro-text:last-of-type {
    margin-bottom: 32px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.intro-item {
    text-align: center;
    padding: 24px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.intro-item:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
}

.intro-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5em;
    font-weight: 600;
}

.intro-item h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.intro-item p {
    font-size: 0.9em;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* 十神相生相克图 */
.shishen-relation-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);
    border: 1px solid #e8e8e8;
}

.shishen-relation-section .section-title {
    font-size: 2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.01em;
}

.shishen-relation-section .section-desc {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 48px;
    text-align: center;
    padding: 0 20px;
}

.relation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: stretch;
}

.relation-diagram {
    background: #f8fafc;
    border-radius: 18px;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 450px;
}

.relation-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.relation-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.relation-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.relation-line {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    margin-right: 12px;
    flex-shrink: 0;
}

.relation-line-grow {
    background: #16a34a;
}

.relation-line-control {
    background: #ef4444;
}

.relation-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.relation-header-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.relation-header-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.relation-header-grow .relation-header-title {
    color: #047857;
}

.relation-header-control .relation-header-title {
    color: #b91c1c;
}

.relation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

.relation-list li {
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px;
    background: #fafbfc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.relation-list li:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.relation-list li:last-child {
    margin-bottom: 0;
}

.relation-list strong {
    margin-right: 0;
    min-width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    padding-top: 2px;
}

.relation-list span {
    flex: 1;
    color: #64748b;
    line-height: 1.75;
    font-size: 13.5px;
    padding-top: 1px;
}

/* 响应式 */
@media (max-width: 968px) {
    .relation-layout {
        grid-template-columns: 1fr;
    }
    
    .relation-diagram {
        order: 2;
    }
    
    .relation-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .shishen-relation-section {
        padding: 32px 24px;
    }
    
    .shishen-relation-section .section-title {
        font-size: 1.6em;
    }
    
    .relation-diagram svg {
        max-width: 100%;
        height: auto;
    }
}

/* 十神网格 - 卡片式布局 */
.shishen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.shishen-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shishen-card::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;
}

.shishen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.shishen-card:hover::before {
    transform: scaleX(1);
}

.shishen-card.has-data {
    border-color: #e0e0e0;
}

.shishen-card.has-data::before {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 500;
    color: #2d3748;
}

.shishen-card.has-data .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.card-content {
    flex: 1;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-category {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-summary {
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.card-status {
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-complete {
    background: #e6fffa;
    color: #047857;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* 详情页样式 */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 32px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #764ba2;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 60px 48px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 48px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.header-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.detail-header h1 {
    font-size: 3em;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.header-category {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-summary {
    font-size: 1.1em;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.detail-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
}

.info-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.info-item {
    margin-bottom: 0;
}

.info-value {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1em;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.log-level {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.log-level.excellent {
    background: #d1fae5;
    color: #065f46;
}

.log-level.good {
    background: #dbeafe;
    color: #1e40af;
}

.log-level.normal {
    background: #fef3c7;
    color: #92400e;
}

.log-level.poor {
    background: #fee2e2;
    color: #991b1b;
}

.no-data {
    text-align: center;
    padding: 80px 40px;
    color: #a0aec0;
}

.no-data-icon {
    font-size: 4em;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .shishen-container {
        padding: 24px 16px;
    }

    .page-header {
        padding: 40px 0 32px;
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 2.5em;
    }

    .shishen-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shishen-card {
        padding: 24px 20px;
    }

    .detail-container {
        padding: 24px 16px;
    }

    .detail-header {
        padding: 40px 24px;
    }

    .detail-header h1 {
        font-size: 2em;
    }

    .header-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5em;
    }

    .detail-content {
        padding: 32px 24px;
    }

    .section-title {
        font-size: 1.15em;
    }

    .intro-section {
        padding: 32px 24px;
        margin-bottom: 40px;
    }

    .intro-title {
        font-size: 1.6em;
    }

    .intro-text {
        font-size: 1em;
    }

    .intro-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .intro-item {
        padding: 20px 12px;
    }

    .intro-item-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3em;
    }
}

