/* QQ号码PK页面样式 */
.pk-container {
    max-width: 1400px;
    margin: 80px auto 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* PK头像样式 */
.pk-avatar-container {
    position: relative;
    margin-bottom: 15px;
}

.pk-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.pk-avatar:hover {
    transform: scale(1.05);
}

/* 响应式头像样式 */
@media (max-width: 768px) {
    .pk-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .pk-avatar {
        width: 60px;
        height: 60px;
    }
    
    .pk-form {
        gap: 10px;
        padding: 10px;
        grid-template-columns: 1fr auto 1fr;
    }
    
    .qq-input {
        font-size: 0.9em;
        padding: 8px 10px;
    }
    
    .qq-input-group {
        gap: 5px;
    }
    
    .qq-input-group label {
        font-size: 0.8em;
    }
    
    .vs-divider {
        gap: 5px;
        font-size: 0.9em;
    }
    
    .vs-icon {
        font-size: 1.1em;
    }
    
    .pk-button {
        font-size: 0.9em;
        padding: 10px 20px;
        margin-top: 10px;
    }
    
    .pk-results {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .pk-container {
        padding: 5px;
    }
    
    .pk-card-content {
        padding: 15px;
    }
}

.pk-header {
    text-align: center;
    margin-bottom: 40px;
}

.pk-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qq-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qq-input-group label {
    font-weight: bold;
    color: var(--nav-primary-bg);
    font-size: 1em;
    text-align: center;
}

.qq-input {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0;
}

.qq-input:focus {
    border-color: var(--nav-primary-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 35, 35, 0.2);
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6c757d;
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
}

.vs-icon {
    font-size: 1.5em;
    color: var(--nav-primary-bg);
}

.pk-button {
    grid-column: 1 / -1;
    padding: 15px 30px;
    background: var(--nav-primary-bg);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.pk-button:hover {
    background: #5a1515;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pk-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pk-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.pk-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pk-card-header {
    background: linear-gradient(135deg, var(--nav-primary-bg), var(--nav-primary-bg-darker));
    color: white;
    padding: 25px;
    text-align: center;
}

.pk-qq-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: monospace;
}

.pk-qq-nickname {
    font-size: 1.2em;
    opacity: 0.9;
}

.pk-card-content {
    padding: 30px;
}

.pk-score {
    text-align: center;
    margin-bottom: 30px;
}

.pk-score-value {
    font-size: 3em;
    font-weight: bold;
    color: var(--nav-primary-bg);
    margin-bottom: 10px;
}

.pk-score-label {
    font-size: 1.2em;
    color: #6c757d;
}

.pk-rating {
    text-align: center;
    margin-bottom: 30px;
}

.pk-rating-badge {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
}

.rating-super { background: linear-gradient(135deg, #ffeb3b, #ffc107); color: #333; }
.rating-high { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.rating-good { background: linear-gradient(135deg, #2196f3, #1976d2); }
.rating-normal { background: linear-gradient(135deg, #9e9e9e, #616161); }

.pk-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.pk-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.pk-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--nav-primary-bg);
    margin-bottom: 5px;
}

.pk-stat-label {
    color: #6c757d;
    font-size: 0.9em;
}

.pk-winner {
    position: relative;
    overflow: hidden;
}

.pk-winner::before {
    content: '🏆 胜出';
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ffd700;
    color: #333;
    padding: 8px 40px;
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 0.9em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pk-comparison {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pk-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.comparison-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--nav-primary-bg);
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 价值对比相关样式 */
.comparison-header::before {
    content: "📊";
    margin-right: 10px;
}

.comparison-header[class*="价值"]::before {
    content: "💰";
}

.comparison-header[class*="依据"]::before {
    content: "📋";
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.comparison-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.comparison-stat:hover {
    background: #e9ecef;
}

.comparison-stat-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.comparison-stat-label {
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-difference {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.difference-positive {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.difference-negative {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.difference-neutral {
    color: #6c757d;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

/* 价值对比图表样式 */
.value-comparison-chart {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reasons-comparison-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pk-comparison {
    animation: fadeIn 0.5s ease-out;
}

.pk-comparison:nth-child(2) {
    animation-delay: 0.2s;
}

.pk-comparison:nth-child(3) {
    animation-delay: 0.4s;
}

/* 评估依据对比表格样式 */
.reasons-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.reasons-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    background-color: #f8f9fa;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.reasons-table-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.reasons-table-row:last-child {
    border-bottom: none;
}

.reasons-table-cell {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.reasons-table-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    min-width: 200px;
}

.reasons-table-cell.numeric {
    justify-content: flex-end;
    text-align: right;
    font-family: monospace;
    font-weight: bold;
    border: none;
}

.reasons-table-cell.status {
    justify-content: center;
    text-align: center;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 12px;
    min-height: 20px; /* 保持最小高度 */
}

/* 当状态为空时隐藏框 */
.reasons-table-cell.status:empty {
    padding: 0;
    background: transparent !important;
    border: none !important;
    min-height: 0;
}

.reasons-table-header-cell {
    padding: 15px;
    color: #495057;
}

.reasons-table-desc {
    font-weight: 500;
}

.positive {
    color: #28a745;
    font-weight: bold;
}

.negative {
    color: #dc3545;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    font-size: 1.2em;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #fff3f3;
    border-radius: 10px;
    margin: 20px 0;
}

.nav-links {
    text-align: center;
    margin: 40px 0;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--nav-primary-bg);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-link-btn:hover {
    background: #5a1515;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .pk-results {
        grid-template-columns: 1fr 1fr;
    }
    
    .comparison-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pk-container {
        margin-top: 60px;
        padding: 10px;
    }
    
    .pk-form {
        gap: 15px;
        padding: 15px;
    }
    
    .qq-input {
        font-size: 1em;
        padding: 10px 12px;
    }
    
    .qq-input-group label {
        font-size: 0.9em;
    }
    
    .vs-divider {
        font-size: 1em;
    }
    
    .vs-icon {
        font-size: 1.2em;
    }
    
    .pk-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .pk-results {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .pk-stats {
        grid-template-columns: 1fr;
    }
    
    .pk-score-value {
        font-size: 2.5em;
    }
}