.kinship-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kinship-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-content {
    color: #fff;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.calculator-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.input-card, .result-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #f5576c;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.relation-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.relation-select:focus {
    outline: none;
    border-color: #f5576c;
}

.relation-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.relation-input:focus {
    outline: none;
    border-color: #f5576c;
}

.input-separator {
    font-size: 1.2rem;
    color: #999;
}

.direct-input {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.direct-input:focus {
    outline: none;
    border-color: #f5576c;
}

.input-hint {
    font-size: 0.8rem;
    color: #999;
}

.calculate-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.result-content {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-result {
    text-align: center;
    color: #999;
}

.empty-result i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-result p {
    font-size: 1rem;
}

.result-detail {
    padding: 20px;
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-relation, .result-call, .reverse-result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.result-relation:last-child, .result-call:last-child {
    margin-bottom: 0;
}

.relation-label, .call-label, .reverse-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.relation-value {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.call-value {
    font-size: 2rem;
    color: #f5576c;
    font-weight: 700;
}

.reverse-section {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.reverse-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reverse-title i {
    color: #f093fb;
}

.reverse-hint {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.reverse-value {
    font-size: 1.5rem;
    color: #f093fb;
    font-weight: 700;
}

.quick-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-title i {
    color: #f5576c;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff5f7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-item:hover {
    background: #fdf2f4;
    transform: translateY(-2px);
}

.quick-relation {
    flex: 1;
    font-size: 0.9rem;
    color: #666;
}

.quick-arrow {
    color: #f5576c;
    font-weight: 600;
}

.quick-result {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5576c;
}

.guide-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.guide-content .guide-item {
    text-align: center;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: #fff;
}

.guide-content .guide-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.guide-content .guide-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .calculator-main {
        grid-template-columns: 1fr;
    }

    .input-row {
        flex-direction: column;
    }

    .relation-select, .relation-input {
        width: 100%;
    }

    .input-separator {
        display: none;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
}